@extends('backend.includes.panel') @section('page_css') @stop @section('page_title','Edit profile') @section('inner_page_link') @stop @section('main_content')
{{ Form::model($user,['route' => 'backend.update.profile','class'=>'form-horizontal form-material','data-parsley-validate'=>'','method'=>'POST','autocomplete'=>'off','id'=>'editProfile','enctype'=>'multipart/form-data']) }} {{ Form::hidden('role_id',$user->role_id) }}

Edit profile

Update your profile details
{{ Form::text('name',null,['class'=>'form-control','data-parsley-required'=>'true','autofocus'=>'true','id'=>'name']) }}
{{ Form::email('email',null,['class'=>'form-control','data-parsley-required'=>'true','id'=>'email','data-parsley-type'=>'email']) }}
{{ Form::text('phone',null,['class'=>'form-control','data-parsley-required'=>'true','data-parsley-type'=>'phone']) }}
{{ Form::hidden('old_image',$user->image,['id'=>'old_image']) }}

{{ ($user->role_id == 2 ? 'Logo' : 'Profile Picture') }}

@if($user->role_id == 4)

Properties

@if($user->userProperties->count() > 0) @foreach($user->userProperties as $key => $user_property) @if(isset($user_property->property)) {{ ($key+1).'. '.$user_property->property->title }}
@endif @endforeach @endif
@endif @if($user->role_id == 6)

{{ Form::text('company',$user->company,['class'=>'form-control','id'=>'company','maxlength' => 100,'minlength'=>2]) }}
{{ Form::text('wsib_no',$user->contractorDetails->wsib_no,['class'=>'form-control','data-parsley-required'=>'true','id'=>'wsib_no']) }}
{{ Form::text('business_trade_number',$user->contractorDetails->business_trade_number,['class'=>'form-control','data-parsley-required'=>'true','id'=>'business_trade_number']) }}
{{ Form::date('expiry_date',date('Y-m-d',strtotime($user->contractorDetails->expiry_date)),['class'=>'form-control','data-parsley-required'=>'true','id'=>'expiry_date','data-parsley-mindate'=>date('m/d/Y')]) }}

Insurance Certificate

@if(!empty($user->contractorDetails->attachment)) @endif
{{Form::checkbox('acmo_registered', 1, $user->contractorDetails->acmo_registered, ['class'=>'check-switch'])}}
{{Form::checkbox('cci_registered', 1, $user->contractorDetails->cci_registered, ['class'=>'check-switch'])}}
@endif {{ Form::close() }}
@stop @section('page_script') @stop