@extends('layouts.app') @section('content')
تقرير مفصل لحركة فواتير الموردين اليومية والإجماليات للفترة من {{ \Carbon\Carbon::parse($startDate)->format('Y/m/d') }} إلى {{ \Carbon\Carbon::parse($endDate)->format('Y/m/d') }}
{{ session('success') }}
إجمالي الفواتير
{{ $data->sum('invoice_count') }}
إجمالي المبلغ
{{ number_format($data->sum('total_amount'), 2) }}
المبلغ المدفوع
{{ number_format($data->sum('paid_amount'), 2) }}
المبلغ المتبقي
{{ number_format($data->sum('total_amount') - $data->sum('paid_amount'), 2) }}
متوسط الفواتير اليومي
{{ round($data->avg('invoice_count'), 1) }}
متوسط المبلغ اليومي
{{ number_format($data->avg('total_amount'), 2) }}
نسبة التحصيل
{{ $data->sum('total_amount') > 0 ? round(($data->sum('paid_amount') / $data->sum('total_amount')) * 100, 1) : 0 }}%
أيام بدون فواتير
{{ $data->where('invoice_count', 0)->count() }}
| # | التاريخ | عدد الفواتير | إجمالي المبلغ | المبلغ المدفوع | المبلغ المتبقي | نسبة التحصيل | الحالة |
|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ \Carbon\Carbon::parse($record['date'])->format('d/m/Y') }} | {{ $record['invoice_count'] }} | {{ number_format($record['total_amount'], 2) }} | {{ number_format($record['paid_amount'], 2) }} | {{ number_format($record['total_amount'] - $record['paid_amount'], 2) }} |
@if($record['total_amount'] > 0)
@php
$percentage = ($record['paid_amount'] / $record['total_amount']) * 100;
$color = $percentage >= 100 ? 'green' : ($percentage >= 50 ? 'yellow' : 'red');
@endphp
|
@if($record['invoice_count'] == 0) بدون فواتير @elseif($record['paid_amount'] >= $record['total_amount']) مكتمل @elseif($record['paid_amount'] > 0) جزئي @else معلق @endif |
|
لا توجد بيانات حالياً لم يتم العثور على فواتير في الفترة المحددة |
|||||||
ملاحظة: التقرير يعرض حركة الفواتير اليومية للفترة المحددة
تحديث التقرير: يتم تحديثه تلقائياً يومياً
التصدير: يمكنك تصدير البيانات بصيغة Excel أو PDF