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

{{ app()->getLocale() == 'ar' ? 'سندات القبض' : 'Receipts' }}

{{ app()->getLocale() == 'ar' ? '+ إضافة سند قبض' : '+ New Receipt' }}
@foreach($receipts as $receipt) @endforeach
{{ app()->getLocale() == 'ar' ? 'رقم السند' : 'Receipt #' }} {{ app()->getLocale() == 'ar' ? 'العميل' : 'Customer' }} {{ app()->getLocale() == 'ar' ? 'المبلغ' : 'Amount' }} {{ app()->getLocale() == 'ar' ? 'طريقة الدفع' : 'Method' }} {{ app()->getLocale() == 'ar' ? 'التاريخ' : 'Date' }} {{ app()->getLocale() == 'ar' ? 'الحالة' : 'Status' }} {{ app()->getLocale() == 'ar' ? 'العمليات' : 'Actions' }}
{{ $receipt->receipt_number }} {{ $receipt->customer->name }} {{ number_format($receipt->amount, 2) }} SAR {{ $receipt->payment_method }} {{ $receipt->receipt_date->format('Y-m-d') }} {{ strtoupper($receipt->status) }} {{ app()->getLocale() == 'ar' ? 'عرض' : 'View' }} {{ app()->getLocale() == 'ar' ? 'طباعة' : 'Print' }}
{{ $receipts->links() }}
@endsection