@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