@extends('admin.layouts.master') @section('content')

Vouchers List

@if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif
@foreach($vouchers as $key=>$row) @endforeach
Voucher Id Voucher Currency Discount Discount Type Duration Expiry Date Used by Customers Action
{{$row->id}} {{$row->discount_code}} {{$row->currency}} {{$row->discount}} {{($row->discount_type)}} {{($row->duration)}} {{$row->expiry_date != "0000-00-00" ? date("d-m-Y",strtotime($row->expiry_date)) : ""}} {{--(count($row->usedbycustomers) ? ' '.count($row->usedbycustomers).' Customers' : 'None')--}} {!!(count($row->usedbycustomers) ? 'View Details' : 'None')!!} @if(false && count($row->usedbycustomers)) @endif
{{ method_field('DELETE') }} {{ csrf_field() }}

Constant Voucher

@if(isset($refer_voucher) && $refer_voucher) @endif
Voucher Id Voucher Currency Discount Discount Type Duration Expiry Date
{{$refer_voucher->id}} {{$refer_voucher->discount_code}} {{$refer_voucher->currency}} {{$refer_voucher->discount}} {{($refer_voucher->discount_type)}} {{($refer_voucher->duration)}} {{($refer_voucher->no_of_months)}}
@endsection @section('script') @endsection