@extends('admin.layouts.master') @section('css') @endsection @section('title') عرض الخزنة @endsection @section('content') @php $updatedAt = $treasury->updated_at?->copy()->timezone('Africa/Cairo'); $period = $updatedAt ? ($updatedAt->format('H') < 12 ? 'صباحًا' : 'مساءً') : null; @endphp
@include('admin.Alerts')
{{-- Header --}}

تفاصيل الخزنة

تخص هذه الخزنة حساب: {{ auth()->user()->name }}
{{ $treasury->name }}
{{-- Body --}}
اسم الخزنة
{{ $treasury->name }}
النوع
@if($treasury->is_master) رئيسية @else فرعية @endif
الحالة
@if($treasury->status) مفعل @else غير مفعل @endif
آخر إيصال صرف
{{ $treasury->last_payment_receipt_no }}
آخر إيصال تحصيل
{{ $treasury->last_collection_receipt_no }}
التاريخ
{{ $treasury->date?->format('Y-m-d') ?? '—' }}
آخر تعديل
@if($updatedAt && $treasury->updated_by) {{ $treasury->updated_by }} {{ $updatedAt->translatedFormat('d F Y - h:i') }} {{ $period }} @else — @endif
{{-- Actions --}}
@endsection