@extends('member-new') @push('head-script') @endpush @push('content-header') @endpush @section('content') {!! Form::model($area_mapping, ['method' => isset($area_mapping) && $area_mapping->id ? 'put' : 'post', 'files' => 'true']) !!}
@if (isset($status))
@endif
{{trans('master/master.area_mapping_details')}}
{{trans('master/master.enter_area_mapping_details')}}
@if(isset($areas) && ($area_mapping->id)) @endif @foreach($areas as $area) @endforeach {!! $errors->first('area_id', '')!!}
@if(isset($areas) && ($area_mapping->id))
@else
@endif
@if(isset($areas) && ($area_mapping->id))
@else
@endif
@if(isset($area) && ($area_mapping->id))
@else
@endif
@if(isset($areas) && ($area_mapping->id)) {!! Form::text('from_date',date('d/m/Y', strtotime($fromDate)),['class' => 'form-control', 'id' => 'from_date','disabled'=> 'true']) !!} @else {!! Form::date('from_date',date('Y-m-d', strtotime($fromDate)),['class' => 'form-control', 'id' => 'from_date']) !!} @endif {!! $errors->first('from_date', '')!!}
{!! Form::date('to_date', isset($area_mapping->to_date) ? date('Y-m-d', strtotime($area_mapping->to_date)) : date('Y-m-d', strtotime($toDate)),['class' => 'form-control', 'id' => 'to_date']) !!} {!! $errors->first('to_date', '')!!}
{{trans('master/master.shift_details')}}
{{trans('master/master.enter_shift_details')}}
{!! $errors->first('shift_id', '')!!}
@if(isset($areas) && ($area_mapping->id))
@else
@endif
@if(isset($areas) && ($area_mapping->id))
@else
@endif
{{trans('master/master.employee_detail')}}
{{trans('master/master.enter_employee_detail')}}
@if(isset($area) && ($area_mapping->id))
{{trans('common/common.id')}} {{trans('master/master.name')}} {{trans('master/master.employee_code')}} {{trans('master/master.employee_type')}} {{trans('master/master.actions')}}
@else
* @if(isset($currEmp) && (($currEmp->employee_type=="employee") || ($currEmp->employee_type=="workman") )) @endif {!! $errors->first('type', '')!!}

@if(isset($currEmp) && ($currEmp->employee_type == 'employee')) @endif @foreach($employees as $employee) @endforeach {!! $errors->first('employee_id', '')!!}

@if(isset($currEmp) && ($currEmp->employee_type == 'workman')) @endif @foreach($workmans as $workman) @endforeach {!! $errors->first('workman_id', '')!!}
@endif
{!! Form::close() !!} @endsection @push('footer-script') @endpush