@extends('admin.layout') @section('title','Wi-Fi Requests') @section('content') @php $counts = collect($requests->items())->countBy('status'); function wifiBadge($s){return match($s){'approved'=>'badge-success','pending_approval','approving'=>'badge-warning','declined','revoked','approval_failed'=>'badge-danger',default=>'badge-neutral'};} @endphp

Guest Wi-Fi Requests

Review verified customers and control Meraki network access.

@if($canExport)
Download CSV
@endif
{{ $requests->total() }}
Visible requests
{{ $counts->get('pending_approval',0) }}
Pending
{{ $counts->get('approved',0) }}
Approved on page
{{ $counts->get('declined',0) }}
Declined on page
@if(request('status'))Clear@endif
@forelse($requests as $w)@empty@endforelse
EmailStoreDeviceStatusRequestedActions
{{ auth()->user()->is_super_admin || auth()->user()->hasStorePermission($w->store_id,'can_view_email') ? $w->email : preg_replace('/(^.).*(@.*$)/','$1***$2',$w->email) }}{{ $w->store->name }}{{ $w->client_mac ?: '—' }}{{ ucwords(str_replace('_',' ',$w->status)) }}{{ optional($w->created_at)->format('M j, Y g:i A') }}
@if($w->status==='pending_approval' && auth()->user()->hasStorePermission($w->store_id,'can_approve'))
@csrf
@endif @if(in_array($w->status,['pending_approval','approval_failed']) && auth()->user()->hasStorePermission($w->store_id,'can_decline'))
@csrf
@endif @if($w->status==='approved' && auth()->user()->hasStorePermission($w->store_id,'can_revoke'))
@csrf
@endif
No Wi-Fi requests found.
@endsection