@extends('admin.layouts.master') @section('title', 'الشفتات') @section('css') @endsection @section('content')
الشفتات — {{ auth()->user()->name }}
فتح شفت
@include('admin.Alerts')
قائمة الشفتات
لا يمكن تسجيل حركة خزنة بدون شفت مفتوح
@forelse($shifts as $shift) @php $isOpen = $shift->status === 'open'; @endphp @empty @endforelse
# الخزنة المستخدم فتح إقفال Opening Expected Actual فرق الحالة إجراءات
{{ $loop->iteration + ($shifts->currentPage()-1)*$shifts->perPage() }}
{{ $shift->treasury?->name ?? '-' }}
#{{ $shift->treasury_id }}
{{ $shift->actor?->name ?? '-' }}
#{{ $shift->actor_user_id }}
{{ optional($shift->opened_at)->timezone('Africa/Cairo')->format('Y-m-d h:i A') }}
@if($shift->closed_at)
{{ optional($shift->closed_at)->timezone('Africa/Cairo')->format('Y-m-d h:i A') }}
@else @endif
{{ number_format((float)$shift->opening_balance, 2) }} {{ number_format((float)$shift->closing_expected, 2) }} {{ $shift->closing_actual !== null ? number_format((float)$shift->closing_actual, 2) : '—' }} @php $diff = (float)$shift->difference; @endphp @if(!$isOpen) {{ number_format($diff, 2) }} @else @endif @if($isOpen) مفتوح @else مغلق @endif
{{-- Show --}} {{-- Show --}} {{-- --}} {{-- --}} {{-- --}} @if($isOpen) {{-- Close --}} @endif
لا يوجد شفتات حتى الآن.
{{ $shifts->links() }}
@endsection @section('js') @endsection