@extends('layouts.app') @section('title', 'تفاصيل الكرت: ' . $voucher->code) @section('content')

تفاصيل الكرت: {{ $voucher->code }}

معلومات الكرت

الكود: {{ $voucher->code }}
الرقم التسلسلي: {{ $voucher->serial_no }}
الباقة: {{ $voucher->categoryVoucher->name }} ({{ $voucher->categoryVoucher->value }} د.ل)
القيمة الأصلية: {{ number_format($voucher->original_value, 2) }} د.ل
الحالة: @if($voucher->status == 'issued') مصدر @elseif($voucher->status == 'sold') مباع @elseif($voucher->status == 'redeemed') مستخدم @elseif($voucher->status == 'expired') منتهي الصلاحية @endif
الشركة الموزعة: {{ $voucher->company->name ?? 'N/A' }}
@if($voucher->commission) @endif
تاريخ الإصدار: {{ $voucher->created_at->format('Y-m-d H:i:s') }}
تاريخ الاستخدام: {{ $voucher->redeemed_at ? $voucher->redeemed_at->format('Y-m-d H:i:s') : 'N/A' }}
المستخدم: @if($voucher->redeemedByUser) {{ $voucher->redeemedByUser->full_name }} @else N/A @endif
تاريخ انتهاء الصلاحية: {{ $voucher->expires_at ? $voucher->expires_at->format('Y-m-d H:i:s') : 'N/A' }}
العمولة للشركة: {{ number_format($voucher->commission->commission_amount, 2) }} د.ل
حالة العمولة: @if($voucher->commission->status == 'pending') معلقة @else مدفوعة @endif
@endsection