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

{{ app()->getLocale() == 'ar' ? 'سند قبض' : 'Receipt' }} - {{ $receipt->receipt_number }}

{{ app()->getLocale() == 'ar' ? 'عودة' : 'Back' }} {{ app()->getLocale() == 'ar' ? 'طباعة / تحميل PDF' : 'Print / Download PDF' }} @if($receipt->status == 'confirmed')
@csrf
@endif

{{ app()->getLocale() == 'ar' ? 'بيانات العميل' : 'Customer Details' }}

{{ $receipt->customer->name }}
{{ $receipt->customer->phone }}

{{ app()->getLocale() == 'ar' ? 'بيانات السند' : 'Receipt Info' }}

{{ app()->getLocale() == 'ar' ? 'التاريخ:' : 'Date:' }} {{ $receipt->receipt_date->format('Y-m-d H:i') }}
@if($receipt->rental)
{{ app()->getLocale() == 'ar' ? 'رقم العقد:' : 'Contract #:' }} {{ $receipt->rental->contract_number }}
@endif
{{ app()->getLocale() == 'ar' ? 'بواسطة:' : 'Received By:' }} {{ $receipt->receiver->name }}
{{ app()->getLocale() == 'ar' ? 'نوع الدفع' : 'Payment Type' }} {{ str_replace('_', ' ', $receipt->payment_type) }}
{{ number_format($receipt->amount, 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'طريقة الدفع' : 'Payment Method' }}
{{ $receipt->payment_method }}
@if($receipt->notes)

{{ app()->getLocale() == 'ar' ? 'ملاحظات' : 'Notes' }}

"{{ $receipt->notes }}"

@endif @if($receipt->rental)
{{ app()->getLocale() == 'ar' ? 'إجمالي العقد' : 'Total Contract' }}
{{ number_format($receipt->rental->total_amount, 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'الرصيد المتبقي' : 'Remaining Balance' }}
{{ number_format($receipt->rental->remaining_amount, 2) }} SAR
@endif
@endsection