{{--

Filter

--}} @if($isProcessing)
@endif @can('delete',"App\Models\Shift\Shift")

@endcan {{-- --}}
@can('delete',"App\Models\Shift\Shift")
@endcan
All Shifts
{{-- --}}
@can('create',"App\Models\Shift\Shift")
{{-- --}} Add New
@endcan
{{--
@csrf
--}} @can('import',"App\Models\Shift\Shift") @livewire('shift.shift-import') @endcan
@can('export',"App\Models\Shift\Shift")
Sample Sheet {{-- shift button --}} {{-- shift button end--}} {{-- shift profit button --}} {{-- --}} {{-- shift profit button end --}} {{-- client funnding button --}} {{-- client funnding button end--}} {{-- vserve profiit button --}} {{-- vseve profit end button --}} {{-- vserve profiit and expense button --}} {{-- vseve profit end expence button --}} {{-- vserve staffs hours button --}} {{-- vseve staffs hours button --}} {{-- Tools --}}
@endcan
{{--
50%
--}}
{{-- --}} {{-- {{dd($shift)}} --}} @foreach($shift as $key => $shiftlist) @php $is_publicholiday=false; $is_sat=false; $is_sun=false; $setting=App\Models\Setting::first(); $dt =\Carbon\Carbon::parse($shiftlist->shift_date); $publicholiday=App\Models\Shift\PublicHoliday::where(["date"=>$shiftlist->shift_date,"state_id"=>$shiftlist->state_id])->first(); if(!empty($shiftlist->shift_type) && $shiftlist->shift_type->name!="CORE - assistance with self-care - night-time sleepover"){ if(!empty($publicholiday)){ $is_publicholiday=true; } else if($dt->isWeekend()){ if($dt->dayOfWeek==\Carbon\Carbon::SUNDAY){ //$this->is_weekend=true; $is_sun=true; } elseif($dt->dayOfWeek==\Carbon\Carbon::SATURDAY){ //$this->is_weekend=true; $is_sat=true; } } } @endphp shift_type)) style="background-color:{{$shiftlist->shift_type->color}}" @endif> {{-- --}} @endforeach
Select Id @include('partials._sort-icon',['field'=>'id']) Shift Type Name @include('partials._sort-icon',['field'=>'name']) Start Date @include('partials._sort-icon',['field'=>'shift_date']) Day Shift start @include('partials._sort-icon',['field'=>'start']) Shift end @include('partials._sort-icon',['field'=>'end']) Total Hours @include('partials._sort-icon',['field'=>'shift_hours']) State Client @include('partials._sort-icon',['field'=>'client_id']) Client Charge @include('partials._sort-icon',['field'=>'client_charge']) Client Total Amount @include('partials._sort-icon',['field'=>'total_client_charge']) Staff @include('partials._sort-icon',['field'=>'staff_id']) Staff Pay @include('partials._sort-icon',['field'=>'staff_pay']) Flue/Km Staff Pay @include('partials._sort-icon',['field'=>'fuel_per_kilometer']) Action
{{$shiftlist->id}} @if(!empty($shiftlist->shift_type)){{$shiftlist->shift_type->name}}@endif {{$shiftlist->name}} {{$shiftlist->shift_date}} {{ \Carbon\Carbon::parse($shiftlist->shift_date)->format('D') }} {{$shiftlist->start}} {{$shiftlist->end}} {{$shiftlist->shift_hours}}@if(!empty($shiftlist->state)){{$shiftlist->state->name}}@endif@if(!empty($shiftlist->client)){{$shiftlist->client->name}}@endif {{$shiftlist->client_charge}} {{$shiftlist->total_client_charge}} @if(!empty($shiftlist->staff)){{$shiftlist->staff->name}}@endif {{$shiftlist->staff_pay}} {{$shiftlist->fuel_per_kilometer}} @can('update',"App\Models\Shift\Shift") @endcan @can('delete',"App\Models\Shift\Shift") @if($confirming===$shiftlist->id) @else @endif @endcan

Showing {{ $shift->firstItem() }} to {{ $shift->lastItem() }} of {{ $shift->total() }} entries

{{ $shift->links() }}