@extends('admin.layouts.master-soyuz') @section('title','All Coupans') @section('body') @component('admin.component.breadcumb',['secondaryactive' => 'active']) @slot('heading') {{ __('All Coupans') }} @endslot @slot('menu1') {{ __('Coupans') }} @endslot @slot('button')
{{__("Add Coupans")}}
@endslot @endcomponent
All Coupans
@foreach($coupans as $key=> $cpn) @endforeach
ID CODE Amount Max Usage Detail Action
{{ $key+1 }} {{ $cpn->code }} @if($cpn->distype == 'fix') @endif {{ $cpn->amount }}@if($cpn->distype == 'per')% @endif {{ $cpn->maxusage }}

Linked to : {{ ucfirst($cpn->link_by) }}

Expiry Date: {{ date('d-M-Y',strtotime($cpn->expirydate)) }}

Discount Type: {{ $cpn->distype == 'per' ? "Percentage" : "Fixed Amount" }}

@can('coupans.delete') @endcan
@endsection