@extends('admin.layouts.app') @section('title', \App\Helpers\TranslationHelper::translate('Codes Details')) @section('crumb') @endsection @section('content')
@forelse($coupons as $index => $coupon) {{-- إظهار اسم العميل لأول voucher فقط --}} @empty @endforelse
# {{ __('Code') }} {{ __('Client Name') }} {{ __('Code Status') }} {{ __('Date Created') }} {{ __('Actions') }}
{{ $index + 1 }} {{ $coupon->code }}{{ $coupon->voucherspages->first()->client->name ?? __('N/A') }} @if ($coupon->voucherspages->first()) @if ($coupon->voucherspages->first()->status == 'active') {{ __('Active') }} @elseif ($coupon->voucherspages->first()->status == 'inactive') {{ __('Inactive') }} @else {{ __('Pending') }} @endif @else {{ __('No Status') }} @endif {{-- عرض تاريخ الإنشاء --}} {{ $coupon->created_at->format('Y-m-d H:i') }}
{{ __('No Codes Available') }}
@endsection @push('admin_js') @endpush