@php $rand = 0; @endphp @if(isset($employee->employee_otherservice) && count($employee->employee_otherservice) > 0) @foreach($employee->employee_otherservice as $employee_otherservice) @php $rand++; @endphp
{{$rand}}
employee_id) && isset($employee_otherservice->name)) readonly @else name="personal_other_service[{{$employee_otherservice->id}}][institute]" @endif class="form-control" @if(isset($employee_otherservice->name))value="{{$employee_otherservice->name}}"@endif/>
employee_id) && isset($employee_otherservice->address)) readonly @else name="personal_other_service[{{$employee_otherservice->id}}][address]" @endif class="form-control" @if(isset($employee_otherservice->address))value="{{$employee_otherservice->address}}"@endif/>
employee_id) && isset($employee_otherservice->type_of_service)) readonly @else name="personal_other_service[{{$employee_otherservice->id}}][type_of_service]" @endif class="form-control" @if(isset($employee_otherservice->type_of_service))value="{{$employee_otherservice->type_of_service}}"@endif/>
employee_id) && isset($employee_otherservice->position)) readonly @else name="personal_other_service[{{$employee_otherservice->id}}][position]" @endif class="form-control" @if(isset($employee_otherservice->position))value="{{$employee_otherservice->position}}"@endif/>
employee_id) && isset($employee_otherservice->from)) @else name="personal_other_service[{{$employee_otherservice->id}}][from]" @endif @if(isset($employee_otherservice->from))value="{{\Carbon\Carbon::parse($employee_otherservice->from)->format('d-m-Y')}}"@endif/>
employee_id) && isset($employee_otherservice->to)) @else name="personal_other_service[{{$employee_otherservice->id}}][to]" @endif @if(isset($employee_otherservice->to))value="{{\Carbon\Carbon::parse($employee_otherservice->to)->format('d-m-Y')}}"@endif/>
@endforeach @else @php $v = \request()->v @endphp @if(isset($v))
{{$v}}
@php($rand = rand(10000000000,100000000000))
@endif @endif