@extends('layouts.app') @section('content')

{{ app()->getLocale() == 'ar' ? 'سندات الصرف' : 'Payment Vouchers' }}

{{ app()->getLocale() == 'ar' ? 'إنشاء سند صرف جديد' : 'Create New Voucher' }}
@foreach($vouchers as $voucher) @endforeach
{{ app()->getLocale() == 'ar' ? 'رقم السند' : 'Voucher #' }} {{ app()->getLocale() == 'ar' ? 'التاريخ' : 'Date' }} {{ app()->getLocale() == 'ar' ? 'العميل' : 'Customer' }} {{ app()->getLocale() == 'ar' ? 'المبلغ' : 'Amount' }} {{ app()->getLocale() == 'ar' ? 'السبب' : 'Reason' }} {{ app()->getLocale() == 'ar' ? 'الحالة' : 'Status' }} {{ app()->getLocale() == 'ar' ? 'الإجراءات' : 'Actions' }}
{{ $voucher->voucher_number }} {{ $voucher->voucher_date->format('Y-m-d') }} {{ $voucher->customer->name ?? '-' }} {{ number_format($voucher->amount, 2) }} SAR {{ $voucher->reason }} {{ strtoupper($voucher->status) }}
{{ $vouchers->links() }}
@endsection