@extends('admin.layout.master') @section('content') @include('flash-message')

Roster Exchange List

Roster Exchange
@csrf
@php $i=1; @endphp @foreach ($exchange_rosters as $roster) @endforeach
#SL Department By With Day Shift Date Action
{{$i++}} {{$roster->department ? $roster->department->name : null}} {{$roster->replace_by ? $roster->replace_by->emp_name : $roster->emp_info->emp_name}} {{$roster->replace_with ? $roster->replace_with->emp_name : null}} {{week_days()[$roster->day_id]}} @if($roster->weekend) (Weekend) @endif {{$roster->fetch_shift_info_data ? $roster->fetch_shift_info_data->name : null}} {{date('d-m-Y',strtotime($roster->start_date))}}
@if($roster->approve_status==1) {!! getApprovalInputField($roster->id,710) !!} @else @if($roster->child_exchange) @if($roster->child_exchange->approve_status ==1) @php $roster->child_exchange->update(['approve_status'=>2]) @endphp @endif @endif @if(company_settings()->approval_system ==2) {{-- --}} @endif @endif
@endsection