@extends('layouts.app') @section('title', 'تقرير الشيكات') @section('content')
| رقم الشيك | النوع | الحساب البنكي | المبلغ | تاريخ الشيك | تاريخ الاستحقاق | المستفيد/المسحوب عليه | الحالة |
|---|---|---|---|---|---|---|---|
| {{ $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->total() }} شيك
{{ number_format($totalAmount ?? 0, 2) }}
{{ number_format($averageAmount ?? 0, 2) }}