@extends('admin.layout.master') @section('content') @include('flash-message')
{{__('obs.batch_shift_assign')}}
{{__('obs.employee_assigned_shift')}}
@csrf
@if(!empty($empLists)) @php($i=1) @foreach($empLists as $emp_val) @endforeach @endif
{{__('obs.sl')}} {{__('obs.code')}} {{__('obs.name')}} {{__('obs.employee_card')}} {{__('obs.gender')}} {{__('obs.department')}} {{__('obs.employee_type')}} {{__('obs.current_shift')}} Status  
{{$i++}} {{$emp_val->emp_code}} {{$emp_val->emp_name}} {{$emp_val->emp_card}} @if($emp_val->emp_gender==1) Male @else Female @endif @if($emp_val->employee_shift_changes->last()) {{$emp_val->employee_shift_changes ? $emp_val->employee_shift_changes->last()->fetch_shift_info_data->name : null}}
{{carbon()->parse($emp_val->employee_shift_changes->last()->start_date)->format('d-m-Y')}} - {{carbon()->parse($emp_val->employee_shift_changes->last()->end_date)->format('d-m-Y')}} @else {{$emp_val->fetch_shift_info_data ? $emp_val->fetch_shift_info_data->name : null}} @endif
@if($emp_val->active_status==1) Active @else InActive @endif
@include('payroll.shift.batch_shift_assign.batchshiftassignModal') @endsection @section('script') @endsection