{{ \App\Helpers\TranslationHelper::transFromDatabase('Bank Withdrawal Slip Details', __('تفاصيل سند السحب البنكي')) }} #{{ $withdrawal->id }}

@permission('banking.withdrawals.edit') {{ __('تعديل') }} @endpermission {{ __('العودة للقائمة') }}

{{ __('معلومات سند السحب') }}

@if($withdrawal->status == 'pending') {{ __('قيد الانتظار') }} @elseif($withdrawal->status == 'approved') {{ __('معتمد') }} @elseif($withdrawal->status == 'rejected') {{ __('مرفوض') }} @endif

{{ __('الحساب البنكي') }}

{{ $withdrawal->bankAccount->account_number }} - {{ $withdrawal->bankAccount->bank->name }}

{{ __('تاريخ السحب') }}

{{ $withdrawal->withdrawal_date ? $withdrawal->withdrawal_date->format('Y-m-d') : '-' }}

{{ __('المبلغ') }}

{{ number_format($withdrawal->amount, 2) }}

{{ __('رقم المرجع') }}

{{ $withdrawal->reference_number ?: '-' }}

{{ __('طريقة السحب') }}

@if($withdrawal->withdrawal_method == 'cash') {{ __('نقدي') }} @elseif($withdrawal->withdrawal_method == 'check') {{ __('شيك') }} @elseif($withdrawal->withdrawal_method == 'transfer') {{ __('تحويل بنكي') }} @elseif($withdrawal->withdrawal_method == 'other') {{ __('أخرى') }} @endif

{{ __('المستفيد') }}

{{ $withdrawal->beneficiary ?: '-' }}

{{ __('الحساب الوجهة') }}

{{ $withdrawal->chartOfAccount ? $withdrawal->chartOfAccount->name . ' - ' . $withdrawal->chartOfAccount->code : '-' }}

{{ __('مركز التكلفة') }}

{{ $withdrawal->costCenter ? $withdrawal->costCenter->name . ' (' . $withdrawal->costCenter->code . ')' : '-' }}

@if($withdrawal->withdrawal_method == 'check')

{{ __('رقم الشيك') }}

{{ $withdrawal->check_number ?: '-' }}

@endif

{{ __('الوصف') }}

{{ $withdrawal->description ?: '-' }}

{{ __('تاريخ الإنشاء') }}

{{ $withdrawal->created_at->format('Y-m-d H:i') }}

{{ __('بواسطة') }}

{{ $withdrawal->createdBy ? $withdrawal->createdBy->name : '-' }}

@if($withdrawal->status != 'pending')

{{ __('تاريخ التحديث') }}

{{ $withdrawal->updated_at->format('Y-m-d H:i') }}

{{ __('تم التحديث بواسطة') }}

{{ $withdrawal->approvedBy ? $withdrawal->approvedBy->name : '-' }}

@endif
@if($withdrawal->status == 'pending' && (auth()->user()->can('banking.withdrawals.approve') || auth()->user()->can('banking.withdrawals.reject')))

{{ __('الإجراءات') }}

@permission('banking.withdrawals.approve')
@csrf {{ __('اعتماد السحب') }}
@endpermission @permission('banking.withdrawals.reject')
@csrf {{ __('رفض السحب') }}
@endpermission
@endif @if($withdrawal->attachments && count($withdrawal->attachments) > 0)

{{ __('المرفقات') }}

@foreach($withdrawal->attachments as $attachment)
{{ $attachment->original_name }}
@endforeach
@endif