@extends('app') @section('page-title') @section('content') @if (isset($status))
@endif
@lang('modules.client.createTitle')
{!! Form::model($employee, ['method' => isset($employee) && $employee->id ? 'put' : 'post', 'files' => 'true']) !!}
@if(isset($employee) && ($employee->id))

Edit

@else

Add New

@endif
{!! Form::text('employee_code', isset($employee) && $employee->employee_code ? $employee->employee_code : old('name'), ['class' => 'form-control', 'id' => 'employee_code']) !!} {!! $errors->first('employee_code', '')!!}
{!! Form::text('name', isset($employee) && $employee->name ? $employee->name : old('name'), ['class' => 'form-control', 'id' => 'name']) !!} {!! $errors->first('name', ' ')!!}
{!! Form::text('geo_address', isset($employee) && $employee->geo_address ? $employee->geo_address : old('geo_address'), ['class' => 'form-control', 'id' => 'geo_address']) !!} {!! $errors->first('geo_address', '')!!}
{!! Form::email('email', isset($employee) && $employee->email ? $employee->email : old('email'), ['class' => 'form-control', 'id' => 'email']) !!} {!! $errors->first('email', ' ')!!}
{!! Form::text('mobile', isset($employee) && $employee->mobile ? $employee->mobile : old('mobile'), ['class' => 'form-control', 'id' => 'mobile']) !!} {!! $errors->first('mobile', ' ')!!}
{!! $errors->first('premises', '')!!}
{!! Form::date('dob', isset($employee) && $employee->dob ? $employee->dob : old('dob'), ['class' => 'form-control', 'id' => 'dob']) !!} {!! $errors->first('dob', ' ')!!}
{!! $errors->first('password', '')!!}
{!! $errors->first('password_confirmation', '')!!}
{!! $errors->first('department_id', '')!!}
{!! $errors->first('designation_id', '')!!}
{!! $errors->first('manager_id', '')!!}
{!! $errors->first('gender', '')!!}

Assign location(s) & shifts to employee

{!! $errors->first('location_id', '')!!}
{!! $errors->first('shift_id', '')!!}

Assign Sublocation(s) to employee

Status

{!! Form::date('date_of_joining', isset($employee) && $employee->date_of_joining ? $employee->date_of_joining : old('date_of_joining'), ['class' => 'form-control', 'id' => 'date_of_joining']) !!} {!! $errors->first('date_of_joining', ' ')!!}

Employee selfie image

@if($employee->image) your image @else your image @endif
{!! $errors->first('image', '')!!}
{!! Form::close() !!}
@endsection @push('footer-script') @endpush