@php($page = 'vouchers') {{env('APP_NAME')}} | Vouchers {{-- --}} {{-- @livewireStyles --}}
@include("components.navbar")
@include("components.sidebar")
{{-- stats card --}}

All Vouchers

{{number_format($data['all'])}}

{{formatPrice($data['all_amount'])}}

Pending

{{number_format($data['pending'])}}

{{formatPrice($data['pending_amount'])}}

Successful

{{number_format($data['successful'])}}

{{formatPrice($data['successful_amount'])}}

Rejected

{{number_format($data['rejected'])}}

{{formatPrice($data['rejected_amount'])}}

{{-- end stats card --}} {{-- table --}}

All Vouchers

@php($count = 1) @foreach ($vouchers as $voucher) @endforeach
S/N Title #ID Category Amount Date Status Action
{{ $count }} {{ $voucher->title }} {{ $voucher->code }} {{ $voucher->category }} {{ formatPrice($voucher->total) }} {{ $voucher->date }} {{ $voucher->status }}
@include("components.footer")
{{-- --}} {{-- --}} {{-- --}}