@extends('backend.layouts.main') @section('title', 'Promo codes') @section('main-container')
@if(session()->has('success'))
{{ session('success') }}
@endif @if(session()->has('error'))
{{ session('error') }}
@endif
Promo Codes Usages @if ($totalUsedCount!=null) | Total Used: {{ $totalUsedCount }} @endif
Back
@foreach ($promoCodeUsages as $key=> $value) @endforeach
# Code Discount Limit User Name Email Used At Action
{{$key+1}} {{$value->promoCode->code}} {{$value->promoCode->discount}}{{ ($value->promoCode->discount_type=='value') ?'($)':'(%)' }} {{ $value->promoCode->usage_limit }} {{ $value->user->name }} {{ $value->user->email }} {{date('M,d-Y h:i a',strtotime($value->created_at) )}}
@endsection