@extends('admin.layout') @section('title', 'Branches & Registered Devices') @section('content')
| Code | Branch Name | Business | Address | Status |
|---|---|---|---|---|
{{ $b->code }} |
{{ $b->name }} @if($b->is_main)MAIN@endif | {{ $b->business->name ?? '-' }} | {{ $b->address ?? '-' }} | {{ $b->is_active ? 'Active' : 'Inactive' }} |
| Device Name | Platform | Business / Branch | Last Seen / Sync | Status | Action |
|---|---|---|---|---|---|
| {{ $d->device_name }} {{ $d->device_uuid }} |
{{ strtoupper($d->platform) }} ({{ $d->app_version ?? '1.0' }}) | {{ $d->business->name ?? '-' }} ยท {{ $d->branch->name ?? '-' }} | {{ $d->last_seen_at?->diffForHumans() ?? 'Never' }} / {{ $d->last_sync_at?->diffForHumans() ?? 'Never' }} | {{ strtoupper($d->status) }} | |
| No devices registered yet. Devices register automatically on first POS or Android login. | |||||