@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
Review verified customers and control Meraki network access.
| Store | Device | Status | Requested | Actions | |
|---|---|---|---|---|---|
| {{ 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'))@endif @if(in_array($w->status,['pending_approval','approval_failed']) && auth()->user()->hasStorePermission($w->store_id,'can_decline'))@endif @if($w->status==='approved' && auth()->user()->hasStorePermission($w->store_id,'can_revoke'))@endif |
| No Wi-Fi requests found. | |||||