@extends('layouts.app') @section('title', 'تقرير الشيكات') @section('content')

تقرير الشيكات

العودة للتقارير

معايير التقرير

@if(isset($checks))

تقرير الشيكات

تصدير Excel
@if($checks->isEmpty())
لا توجد شيكات تطابق معايير البحث
@else
@foreach($checks as $check) @endforeach
رقم الشيك النوع الحساب البنكي المبلغ تاريخ الشيك تاريخ الاستحقاق المستفيد/المسحوب عليه الحالة
{{ $check->check_number }} {{ $check->check_type == 'incoming' ? 'وارد' : 'صادر' }} {{ $check->bankAccount->account_name ?? 'غير محدد' }} {{ number_format($check->amount, 2) }} {{ $check->check_date->format('Y-m-d') }} {{ $check->due_date->format('Y-m-d') }} {{ $check->check_type == 'incoming' ? $check->drawer_name : $check->beneficiary_name }} @php $statusClasses = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'deposited' => 'bg-blue-100 text-blue-800', 'cashed' => 'bg-green-100 text-green-800', 'returned' => 'bg-red-100 text-red-800', 'cancelled' => 'bg-gray-100 text-black', ]; $statusNames = [ 'pending' => 'معلق', 'deposited' => 'مودع', 'cashed' => 'مصروف', 'returned' => 'مرتجع', 'cancelled' => 'ملغي', ]; @endphp {{ $statusNames[$check->status] ?? $check->status }}
{{ $checks->appends(request()->query())->links() }}

إجمالي الشيكات

{{ $checks->total() }} شيك

إجمالي المبالغ

{{ number_format($totalAmount ?? 0, 2) }}

متوسط قيمة الشيك

{{ number_format($averageAmount ?? 0, 2) }}

@endif
@endif
@endsection