@extends('frontend.layouts.app'.config('theme_layout')) @section('title', trans('labels.frontend.offers.title').' | '.app_name()) @push('after-styles') @endpush @section('content')
@if(count($coupons) > 0)
@foreach($coupons as $coupon)

{{$coupon->name}}

{{$coupon->description}}

@lang('labels.frontend.offers.usage') : @lang('labels.frontend.offers.per_user') {{$coupon->per_user_limit}}

@if($coupon->min_price && $coupon->min_price > 0)

@lang('labels.frontend.offers.minimum_order_amount') {{$coupon->min_price.''.$appCurrency['symbol']}}

@endif
@if($coupon->type == 1) @lang('labels.backend.coupons.discount_rate') @else @lang('labels.backend.coupons.flat_rate') @endif
@lang('labels.frontend.offers.validity') : @if($coupon->expires_at) {{ (\Illuminate\Support\Carbon::parse($coupon->expires_at)->diff(\Illuminate\Support\Carbon::now())->days < 1) ? 'today' : \Illuminate\Support\Carbon::parse($coupon->expires_at)->diffInDays(\Illuminate\Support\Carbon::now())}} Days @else @lang('labels.frontend.offers.unlimited') @endif

{{$coupon->code}}

@endforeach
@else

@lang('labels.frontend.offers.no_offers')

@endif
@include('frontend.layouts.partials.right-sidebar')
@endsection