@php $option="Save"; @endphp @if(!empty($empEosdata)) @if(count($empEosdata)>0) @php $option="Update"; @endphp @endif @endif @if(!empty($empDetailsData)) @if(count($empDetailsData)>0) @foreach($empDetailsData as $item) @php $data["id"]=$item->id; $data["employeeId"]=$item->user_code; $data["employeeName"]=$item->name; $data["mobile"]=$item->mobile; $data["email"]=$item->email; $data["relation"]=$item->relation; $data["employeeRelName"]=$item->relation_name; if($item->dob!='') $data["dob"]=date('d/m/Y',strtotime($item->dob)); else $data["dob"]=''; @endphp @endforeach @endif @endif @php $data["retirementmode"]=''; $data["order_no"]=''; $data["remarks"]=''; $data["display"]=''; $data["eos_date"]=''; $data["order_date"]=''; @endphp @if(!empty($empEosdata)) @if(count($empEosdata)>0) @foreach($empEosdata as $item) @php $data["retirementmode"]=$item->retirement_mode; $data["order_no"]=$item->order_no; $data["remarks"]=$item->remarks; $data["display"]=$item->display; if($item->eos_date!='') $data["eos_date"]=date('d/m/Y',strtotime($item->eos_date)); else $data["eos_date"]=''; if($item->order_date!='') $data["order_date"]=date('d/m/Y',strtotime($item->order_date)); else $data["order_date"]=''; @endphp @endforeach @endif @endif @if(Session::has('error')) {{Session::get('error')}} @endif @csrf End of service User ID* @error('employeeId') {{ $message }} @enderror End of Service Mode* Select Mode @foreach ($retirement_mode as $key => $value) {{ $value }} @endforeach @error('eosMode') {{ $message }} @enderror End of Service Date* @error('eosDate') {{ $message }} @enderror Order No. @error('orderNo') {{ $message }} @enderror Order Date @error('orderDate') {{ $message }} @enderror Remarks {{ $data["remarks"] }} @error('remarks') {{ $message }} @enderror @if($working_status=="working") With update in relieving dates in Transfer/Posting. @endif {{$option}}