@extends('layouts.app') @section('title', 'تقرير المبيعات الإجمالي') @section('content')

📊 تقرير المبيعات الإجمالي

ملخص شامل لإجمالي المبيعات والضرائب والخصومات

عودة

عدد الفواتير

{{ number_format($summary['total_invoices']) }}

فاتورة

إجمالي المبيعات

{{ number_format($summary['total_sales'], 0) }}

ريال

الخصومات

{{ number_format($summary['total_discount'], 0) }}

{{ number_format(($summary['total_discount'] / max(1, $summary['total_sales'])) * 100, 2) }}%

الضريبة

{{ number_format($summary['total_tax'], 0) }}

{{ number_format(($summary['total_tax'] / max(1, $summary['total_sales'])) * 100, 2) }}%

البيان القيمة النسبة
المبيعات الفرعية {{ number_format($summary['total_sales'], 0) }} ريال 100%
الخصومات -{{ number_format($summary['total_discount'], 0) }} ريال {{ number_format(($summary['total_discount'] / max(1, $summary['total_sales'])) * 100, 2) }}%
الضريبة المضافة +{{ number_format($summary['total_tax'], 0) }} ريال {{ number_format(($summary['total_tax'] / max(1, $summary['total_sales'])) * 100, 2) }}%
الإجمالي {{ number_format($summary['total_amount'], 0) }} ريال 100%
المبالغ المدفوعة {{ number_format($summary['paid_amount'], 0) }} ريال {{ number_format(($summary['paid_amount'] / max(1, $summary['total_amount'])) * 100, 2) }}%
المبالغ المعلقة {{ number_format($summary['remaining_amount'], 0) }} ريال {{ number_format(($summary['remaining_amount'] / max(1, $summary['total_amount'])) * 100, 2) }}%

📈 النسب والمؤشرات

  • معدل التحصيل {{ $stats['collection_rate'] }}%
  • متوسط الفاتورة {{ number_format($stats['average_invoice'], 0) }} ر.س
  • عدد الفواتير {{ $stats['total_invoices'] }}

💰 الملخص المالي

  • إجمالي المبيعات {{ number_format($summary['total_sales'], 0) }} ر.س
  • الضريبة المضافة {{ number_format($summary['total_tax'], 0) }} ر.س
  • صافي المبيعات {{ number_format($summary['total_amount'], 0) }} ر.س

📋 فترة التقرير

  • من التاريخ {{ \Carbon\Carbon::parse($fromDate)->format('Y-m-d') }}
  • إلى التاريخ {{ \Carbon\Carbon::parse($toDate)->format('Y-m-d') }}
  • عدد الأيام {{ \Carbon\Carbon::parse($toDate)->diffInDays(\Carbon\Carbon::parse($fromDate)) + 1 }}
@endsection