@extends('layouts.app') @section('title', 'إدارة الشيكات - '.config('app.name')) @section('breadcrumb') الرئيسية المحاسبة الشيكات @endsection @section('content')

إدارة الشيكات

إدارة الشيكات المستلمة والصادرة

المستلمة المعلقة

SAR {{ number_format($stats['incoming_total'] ?? 0, 2) }}

المودعة

SAR {{ number_format($stats['due_today'] ?? 0, 2) }}

الصادرة المعلقة

SAR {{ number_format($stats['outgoing_total'] ?? 0, 2) }}

الشيكات المرتجعة

SAR {{ number_format($stats['bounced_total'] ?? 0, 2) }}

@php $chequeStatusFilterOpts = [ ['value' => '', 'label' => 'الكل'], ['value' => 'pending', 'label' => 'قيد المتابعة'], ['value' => 'cleared', 'label' => 'تم التحصيل/الصرف'], ['value' => 'bounced', 'label' => 'مرتجع'], ['value' => 'cancelled', 'label' => 'ملغي'], ]; @endphp
@forelse($cheques as $cheque) @php $isOverdue = $cheque->status === 'pending' && optional($cheque->due_date)->isPast(); $drawerName = $cheque->type === 'incoming' ? ($cheque->party_name ?: '—') : ($cheque->beneficiary_name ?: '—'); @endphp @empty @endforelse
رقم الشيك تاريخ الاستحقاق اسم الساحب/المستفيد البنك المبلغ الحالة
{{ $cheque->cheque_number }} {{ optional($cheque->due_date)->format('Y/m/d') }} {{ $drawerName }} {{ $cheque->bank_name }} {{ number_format((float) $cheque->amount, 2) }} SAR @if($cheque->status === 'cleared') تم التحصيل/الصرف @elseif($cheque->status === 'bounced') مرتجع @elseif($cheque->status === 'cancelled') ملغي @else قيد المتابعة @endif
لا توجد بيانات
{{ $cheques->links() }}
@endsection