@extends("admin/layouts.master") @section('title','All Coupons') @section('body')
@include('admin.message')
@foreach($coupans as $key=> $cpn) @php $currency = App\Currency::first(); @endphp @endforeach
{{ __('adminstaticword.ID') }} {{ __('adminstaticword.CODE') }} {{ __('adminstaticword.Amount') }} {{ __('adminstaticword.MaxUsage') }} {{ __('adminstaticword.Detail') }} {{ __('adminstaticword.Edit') }} {{ __('adminstaticword.Delete') }}
{{ $key+1 }} {{ $cpn->code }}@if($cpn->distype == 'fix') @endif {{ $cpn->amount }}@if($cpn->distype == 'per')% @endif {{ $cpn->maxusage }}

{{ __('adminstaticword.Linkedto') }}: {{ ucfirst($cpn->link_by) }}

{{ __('adminstaticword.ExpiryDate') }}: {{ date('d-M-Y',strtotime($cpn->expirydate)) }}

{{ __('adminstaticword.DiscountType') }}: {{ $cpn->distype == 'per' ? "Percentage" : "Fixed Amount" }}

@endsection