@extends('website.layouts.master') @section('content') {{--
--}}

@lang('header.coupons')

@forelse ($coupons as $coupon)

@lang('header.discount') {{ $coupon->coupon->value }} {{ $coupon->coupon->type == 'percentage' ? '%' : Auth::user()->country->currency_symbol ?? 'جنيه' }} @lang('header.for first order')

{{ $coupon->coupon->end_date ? __('header.active_to') . \Carbon\Carbon::parse($coupon->coupon->end_date) ->locale(app()->getLocale()) ->translatedFormat('d M Y h:i A') : __('header.unknown') }} {{-- {{ $coupon->coupon->end_date ? 'سارية حتى ' . \Carbon\Carbon::parse($coupon->coupon->end_date)->locale('ar')->translatedFormat('d M Y h:i A') : 'غير محددة' }} --}}

{{-- @if ($status == 'active') --}} {{-- @else

هذا الكوبون {{ $status == 'used' ? 'استخدم' : 'منته' }}.

@endif --}}
@empty

@lang('header.no_coupons') {{ $status == 'active' ? 'سارية' : ($status == 'used' ? __('header.used') : __('header.inactive')) }}

@endforelse
@endsection {{-- --}}