@extends('layouts.front-end.app') @section('title', translate('coupons')) @section('content')
@include('web-views.partials._profile-aside')
{{translate('coupons')}}
@foreach ($coupons as $item)
@if ($item->coupon_type == "free_delivery") @elseif ($item->coupon_type != "free_delivery" && $item->discount_type == "percentage") @elseif ($item->coupon_type != "free_delivery" && $item->discount_type == "amount") @endif

@if ($item->coupon_type == "free_delivery") {{ translate('free_Delivery') }} @else {{ ($item->discount_type == 'percentage') ? $item->discount.'%' : webCurrencyConverter(amount: $item->discount) }} @endif

{{ translate('on') }} @if($item->seller_id == '0') {{ translate('All_Shops') }} @elseif($item->seller_id == NULL) {{ $web_config['company_name'] }} @else {{ isset($item->seller->shop) ? $item->seller->shop->name : translate('shop_not_found') }} @endif

{{ translate('valid_till') }} {{ $item->expire_date->format('d M, Y') }}

{{ translate('available_from_minimum_purchase') }} {{ webCurrencyConverter(amount: $item->min_purchase) }}

@endforeach @if(count($coupons) == 0)
{{translate('no_Coupon_Found')}}!
@endif
{{ $coupons->links() }}
@endsection