@extends('admin.layout.master') @section('content')
| Sl# | Code | Name | Emp Card | Gender | Department | Employee Type | Current Roster | Status | |
|---|---|---|---|---|---|---|---|---|---|
| {{$i++}} | {{$emp_val->emp_code}} | {{$emp_val->emp_name}} | {{$emp_val->emp_card}} | @if($emp_val->emp_gender==1) Male @else Female @endif | {{$emp_val->fetch_department ? $emp_val->fetch_department->name : null}} | {{$emp_val->emp_type ? $emp_val->emp_type_info->name : null}} |
@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 |