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

Hotspot Vouchers

Latest hotspot users read directly from MikroTik (limited).
Generate Bulk Add Voucher
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if ($offline)
Router seems offline or API not reachable.
@endif @php $codes = session('generated_codes', []); @endphp @if (!empty($codes))
Recently generated codes:
@foreach($codes as $c) {{ $c }} @endforeach
@endif @if (empty($routerUsers))
No vouchers found (or none within the selected limit).
@else @foreach($routerUsers as $u) @php $disabled = ($u['disabled'] ?? 'false') === 'true'; $status = $disabled ? 'Disabled' : 'Enabled'; @endphp @endforeach
Code Profile Comment Status Uptime RX TX Actions
{{ $u['name'] ?? '' }} {{ $u['profile'] ?? '' }} {{ $u['comment'] ?? '' }} {{ $status }} {{ $u['uptime'] ?? '-' }} {{ $u['bytes-in'] ?? '-' }} {{ $u['bytes-out'] ?? '-' }} Print |
@csrf @method('DELETE')
@endif
@endsection