@extends('layouts.app') @section('title','Vouchers Report — BlueBando v3') @section('content')

Vouchers Report

Orodha ya vocha zote zilizoundwa na mfumo.

{{-- Filters --}}
@php $currentStatus = $status ?? 'all'; @endphp
{{-- Counters --}}
Jumla ya Vocha
{{ number_format($counters['total'] ?? 0) }}
Bado (unused)
{{ number_format($counters['unused'] ?? 0) }}
Imetumika (used)
{{ number_format($counters['used'] ?? 0) }}
Ime-expire
{{ number_format($counters['expired'] ?? 0) }}
{{-- Table --}}
@forelse($vouchers as $v) @php $st = strtolower($v->status); @endphp @empty @endforelse
Tarehe Router Vocha Phone Kifurushi Amount Status Ina-expire Order Ref
{{ $v->created_at?->format('Y-m-d H:i') }} {{ $v->router->name ?? '-' }} {{ $v->code }} {{ $v->phone ?? ($v->order->phone ?? '-') }} {{ $v->order->plan->name ?? $v->profile ?? '-' }} {{ number_format($v->amount) }} {{ $v->currency }} {{ ucfirst($v->status) }} {{ $v->expires_at?->format('Y-m-d H:i') ?? '-' }} {{ $v->order->reference ?? '-' }}
Hakuna vocha za kuonyesha.
@if($vouchers->hasPages()) @endif
@endsection