@extends('layouts.app') @section('title', 'رحلات العمل') @section('styles') @endsection @section('content') {{-- Stats --}}

الإجمالي

{{ $stats['total'] ?? 0 }}

قيد الانتظار

{{ $stats['pending'] ?? 0 }}

الموافق عليها

{{ $stats['approved'] ?? 0 }}

المكتملة

{{ $stats['completed'] ?? 0 }}

إجمالي البدلات

{{ number_format($stats['total_budget_sum'] ?? 0, 2) }}
{{-- Table --}}

قائمة الرحلات

@if($trips->count() > 0)
@foreach($trips as $index => $trip) @endforeach
# الموظف الوجهة الغرض من - إلى الميزانية الحالة إجراءات
{{ $trips->firstItem() + $index }} {{ $trip->employee_name ?? '-' }} {{ $trip->destination }} {{ Str::limit($trip->purpose, 30) }} {{ $trip->departure_date }} - {{ $trip->return_date }} {{ number_format($trip->total_allowance ?? 0, 2) }} @if($trip->status == 'pending') قيد الانتظار @elseif($trip->status == 'approved') موافق عليها @elseif($trip->status == 'completed') مكتملة @elseif($trip->status == 'cancelled') ملغاة @else {{ $trip->status }} @endif
@if($trip->status == 'pending')
@csrf
@csrf
@elseif($trip->status == 'approved')
@csrf
@endif
{{ $trips->withQueryString()->links() }}
@else

لا توجد رحلات عمل حالياً

@endif
{{-- Add Modal --}} {{-- Stat Modal --}}
@endsection @section('scripts') @endsection