@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('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') }} Password is not matching.
@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') }} Password is not matching.
@endif

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

{{trans('staff.sales_teams')}}
{{trans('staff.leads')}}
{{trans('staff.opportunities')}}
{{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('table.back')}}
{!! Form::close() !!}
@section('scripts') @stop