@if (isset($staff)) {!! Form::model($staff, ['url' => $type . '/' . $staff->id, 'method' => 'put', 'files'=> true,'id'=>'staff']) !!} @else {!! Form::open(['url' => $type, 'method' => 'post', 'files'=> true,'id'=>'staff']) !!} @endif
{!! Form::label('user_avatar_file', trans('staff.user_avatar'), ['class' => 'control-label']) !!}
@if(isset($staff->avatar) ) User Image @endif
{{ $errors->first('user_avatar_file', ':message') }}
{{trans('dashboard.select_image')}} {{trans('dashboard.change')}} {{trans('dashboard.remove')}}
{!! Form::label('department', trans('staff.department'), ['class' => 'control-label required']) !!}
{!! Form::select('department',$departments ,null, ['id' => 'all_department','class' => 'form-control select2','onchange' => 'addDepartment(this.value)']) !!} {{ $errors->first('department', ':message') }}
{!! Form::label('designation', trans('staff.designation'), ['class' => 'control-label required']) !!}
{!! Form::select('designation', [],null, ['class' => 'form-control select2','onchange' => 'addDesignation(this.value)','id'=>'all_designation']) !!} {{ $errors->first('designation', ':message') }}
{!! Form::label('first_name', trans('staff.first_name'), ['class' => 'control-label required']) !!}
{!! Form::text('first_name', null, ['class' => 'form-control']) !!} {{ $errors->first('first_name', ':message') }}
{!! Form::label('last_name', trans('staff.last_name'), ['class' => 'control-label required']) !!}
{!! Form::text('last_name', null, ['class' => 'form-control']) !!} {{ $errors->first('last_name', ':message') }}
{!! Form::label('phone_number', trans('staff.phone_number'), ['class' => 'control-label required']) !!}
{!! Form::text('phone_number', null, ['class' => 'form-control','data-fv-integer' => 'true']) !!} {{ $errors->first('phone_number', ':message') }}
{!! Form::label('email', trans('staff.email'), ['class' => 'control-label required']) !!}
{!! Form::email('email', null, ['class' => 'form-control']) !!} {{ $errors->first('email', ':message') }}
@if(!Request::is('staff/*/edit'))
{!! Form::label('password', trans('staff.password'), ['class' => 'control-label required']) !!}
{!! Form::password('password', ['class' => 'form-control']) !!} {{ $errors->first('password', ':message') }}
{!! Form::label('password_confirmation', trans('staff.password_confirmation'), ['class' => 'control-label required']) !!}
{!! Form::password('password_confirmation', ['class' => 'form-control']) !!} {{ $errors->first('password_confirmation', ':message') }} {{trans('staff.passwordNotMatching')}}
@else
{!! Form::label('password', trans('staff.password'), ['class' => 'control-label required']) !!}
{!! Form::password('password', ['class' => 'form-control']) !!} {{ $errors->first('password', ':message') }}
{!! Form::label('password_confirmation', trans('staff.password_confirmation'), ['class' => 'control-label required']) !!}
{!! Form::password('password_confirmation', ['class' => 'form-control']) !!} {{ $errors->first('password_confirmation', ':message') }} {{trans('staff.passwordNotMatching')}}
@endif

{{trans('staff.permissions')}}

{{trans('staff.sales_teams')}}
{{trans('staff.leads')}}
{{trans('staff.logged_calls')}}
{{trans('staff.meetings')}}
{{trans('staff.products')}}
{{trans('staff.quotations')}}
{{--
--}} {{--
{{trans('staff.sales_orders')}}
--}} {{--
--}} {{----}} {{----}} {{----}} {{--
--}} {{--
--}}
{{trans('staff.invoices')}}
{{trans('staff.staff')}}
{{trans('staff.companies')}}
{{trans('staff.reports')}}
{{trans('staff.event')}}
{{trans('event.discussion')}}
{{trans('event.task')}}
{{trans('event.note')}}
{{trans('event.payment')}}
{{trans('event.docs')}}
{{trans('staff.bookingOrder')}}
{{trans('staff.proposal')}}
{{trans('staff.staffs')}}
{{trans('staff.photography')}}
{{trans('staff.entertainment')}}
{{trans('staff.decoration')}}
{{trans('staff.contract')}}
{{trans('staff.menu')}}
{{trans('table.back')}}
{!! Form::close() !!}
@section('scripts') @stop