@extends('admin.layouts.master') @section('title', 'تفاصيل المصروف') @section('content') @php $expenseInfo = $profile['expense'] ?? []; $stats = $profile['stats'] ?? []; @endphp
@include('admin.partials.page-header', [ 'title' => 'تفاصيل المصروف', 'breadcrumbs' => $breadcrumbs, ]) @include('admin.partials.alerts')

تفاصيل المصروف

{{ $expenseInfo['title'] ?? $expense->title }}

الفرع: {{ $expenseInfo['branch'] ?? ($expense->branch?->name ?? 'عام') }} التاريخ: {{ $expenseInfo['date'] ?? $expense->formatted_date }} {{ $expenseInfo['amount'] ?? $expense->formatted_amount }}
@can('expenses.update') تعديل @endcan @can('expenses.delete')
@csrf @method('DELETE')
@endcan رجوع

مصروفات الشهر

{{ $stats['month_amount'] ?? '0.00 ج' }}

عدد مصروفات الشهر

{{ $stats['month_count'] ?? 0 }}

إجمالي مصروفات الجهة

{{ $stats['all_amount'] ?? '0.00 ج' }}

إجمالي عدد المصروفات

{{ $stats['all_count'] ?? 0 }}
أحدث المصروفات المرتبطة
@forelse($profile['recent_expenses'] ?? [] as $item) @empty @endforelse
التاريخ البند المبلغ
{{ $item['date'] }} {{ $item['title'] }} {{ $item['amount'] }}
لا توجد مصروفات مرتبطة
توزيع مصروفات الشهر حسب البنود
@forelse($profile['titles_breakdown'] ?? [] as $row) @empty @endforelse
البند العدد الإجمالي
{{ $row['title'] }} {{ $row['count'] }} {{ $row['total'] }}
لا توجد بيانات توزيع
@if(!empty($expenseInfo['notes']) && $expenseInfo['notes'] !== '-')
ملاحظات المصروف

{{ $expenseInfo['notes'] }}

@endif
@endsection