@php
// تحديد بداية الشهر ونهاية اليوم الحالي
$startOfMonth = \Carbon\Carbon::now()->startOfMonth();
$endOfToday = \Carbon\Carbon::now()->endOfDay();
$totalUnsent = \App\Models\invoices::where('save', 1)
->where('sent_to_zatca', 0)
->where('status', 0)
->whereBetween('created_at', [$startOfMonth, $endOfToday]) // شرط الفترة الزمنية
->count();
@endphp
 }})
 }})