@extends('layout.app') @section('title', 'Edit Employee') @push('header_script') @endpush @section('content')
{!! Form::open([ 'route' => ['employee.update', $employeeData->id], 'onsubmit' => 'BtnSubmit.disabled = true', 'class' => 'row g-3 needs-validation', 'method' => 'put', 'autocomplete' => 'off', 'files' => true, ]) !!}
{{ $errors->first('emp_code') }}
{!! Form::select( 'emp_type', ['' => '--Select--', 'employee' => 'Employee', 'driver' => 'Driver'], $employeeData->emp_type, ['class' => 'form-control select2', 'id' => 'emp_type', 'required'], ) !!}
{{ $errors->first('emp_type') }}
{{ $errors->first('employee_name') }}
@if ($employeeData->emp_img != asset('storage')) View Image @endif
{{ $errors->first('emp_img') }}
{{ $errors->first('father_name') }}
{{ $errors->first('reference_by') }}
{{ $errors->first('mobile_no') }}
{{ $errors->first('alt_mobile_no') }}
{{ $errors->first('email') }}
{{ $errors->first('aadhaar_card_no') }}
{{ $errors->first('driving_licence_no') }}
{{ $errors->first('driving_licence_valid_upto') }}
{{ $errors->first('pan_card_no') }}
{{ $errors->first('joining_date') }}
{{ $errors->first('salary') }}
{{ $errors->first('address') }}
{{ $errors->first('country') }}
{!! Form::select('state_id', ['' => '--Select--'] + $state, $employeeData->state_id, [ 'class' => 'form-control select2', 'id' => 'state_id', 'required', ]) !!}
{{ $errors->first('state_id') }}
{{ $errors->first('city') }}
@php $i = 10; @endphp @foreach ($employeeData->employeeDoc as $doc) @php $i++; @endphp @endforeach
Document Type Image
@if ($doc->doc_img != asset('storage')) View Image @endif @if ($i >= 14) @endif
{{ $errors->first('remark') }}
{!! Form::close() !!}
@endsection @push('footer_script') @endpush