@extends('layouts.app') @section('title', 'الإيراد اليومي') @php $methodMeta = [ 'cash' => ['label' => 'نقدي', 'color' => 'success', 'icon' => 'cash'], 'card' => ['label' => 'بطاقة', 'color' => 'info', 'icon' => 'credit-card'], 'bank_transfer' => ['label' => 'تحويل', 'color' => 'primary', 'icon' => 'building-bank'], 'wallet' => ['label' => 'محفظة', 'color' => 'purple', 'icon' => 'wallet'], 'cheque' => ['label' => 'شيك', 'color' => 'warning', 'icon' => 'file-invoice'], ]; @endphp @section('content') كل التقارير
{{ \Carbon\Carbon::parse($from)->translatedFormat('j M Y') }} ← {{ \Carbon\Carbon::parse($to)->translatedFormat('j M Y') }}

الإيرادات اليومية

@if(empty(array_filter($totals)))

لا توجد مدفوعات في هذه الفترة

غيّر النطاق الزمني أو ابدأ بتسجيل دفعات.

@else
@endif

طرق الدفع

@if($byMethod->isEmpty())
لا توجد بيانات.
@else
@foreach($byMethod as $m) @php $mm = $methodMeta[$m->payment_method] ?? ['label' => $m->payment_method, 'color' => 'secondary', 'icon' => 'circle']; @endphp
{{ $mm['label'] }}
{{ number_format($m->total, 0) }}
{{ $m->count }} عملية
@endforeach
@endif

تفصيل يومي

@if($daily->isEmpty())

لا توجد بيانات تفصيلية

@else
@foreach($daily as $d) @php $date = \Carbon\Carbon::parse($d->date); @endphp @endforeach
التاريخ اليوم عدد العمليات إجمالي اليوم
{{ $date->format('Y-m-d') }} {{ $date->translatedFormat('l') }} {{ $d->count }} {{ number_format($d->total, 2) }}
الإجمالي {{ number_format($kpis['count']) }} {{ number_format($kpis['total'], 2) }}
@endif
@endsection @push('scripts') @endpush