@extends('admin.templates.layout') @section('content')

Total Users

{{ $users_count }}

View all users

Active Vendors

{{ $vendors_count }}

View all vendors

Active Vouchers

{{ $vouchers_count }}

View all vouchers

Latest Vouchers

@foreach($latest_vouchers as $voucher) @endforeach
Voucher Vendor Discount Date
{{ $voucher->title }}
{{ $voucher->vendorDetail->business_name ?? 'N/A' }} @if($voucher->offer_type == 'percentage') {{ number_format($voucher->discount_value) }}% @elseif($voucher->offer_type == 'fixed') £{{ number_format($voucher->discount_value, 2) }} @else {{ ucwords(str_replace('_', ' ', $voucher->offer_type)) }} @endif {{ $voucher->created_at->format('d M Y') }}

Latest Redemptions

@foreach($latest_redemptions as $redemption) @endforeach
Voucher User Saved Time
{{ $redemption->voucher_title }} {{ $redemption->user->name ?? 'N/A' }} £{{ number_format($redemption->amount_saved, 2) }} {{ $redemption->redeemed_at->diffForHumans() }}
@stop @section('script') @stop