@extends('user.layouts.master') @section('user_content')
@include('sweetalert::alert') @if(Session::has('coupon_added')) @elseif(Session::has('purchase_error')) @endif

Marchent Dashboard


Create Coupon @include('user.modals.createcouponmodal')
Available Balance: {{$data['sum_deposit_coupon'] ? '$'.number_format((float)$data['sum_deposit_coupon'], 2, '.', '') : '$00.00'}}

@foreach($data['coupons'] as $row) @endforeach
# COUPON CODE COUPON VALUE COUPON VALIDITY COUPON USED BY CREATED AT ACTION
{{$loop->index+1}} {{$row->coupon_code}} {{$row->coupon_value}} @if($row->validity == 0) Valid @else Used @endif @if($row->owned_by != null) {{$row->owned->user_name}} @else -- @endif {{$row->created_at}}
@endsection