@extends('layouts.app') @section('title', 'Live Monitoring - Tiqkets') @section('page-title', 'Live Monitoring') @section('header-action')
LIVE Last updated: just now
@endsection @section('content')

{{ count($monitoringData) }}

Total Branches

{{ collect($monitoringData)->where('queue_open', true)->count() }}

Queue Open

{{ collect($monitoringData)->sum('takeaway_new') + collect($monitoringData)->sum('takeaway_ready') }}

Active Takeaway Orders

{{ collect($monitoringData)->sum('booking_waiting') + collect($monitoringData)->sum('booking_assigned') }}

Active Bookings
@foreach($monitoringData as $data) @endforeach
Branch Name Location Queue Status Take Away Orders Table Bookings WhatsApp Status Action
{{ $data['branch_name'] }}
{{ $data['branch_location'] ?? 'N/A' }} @if($data['queue_open']) Open @else Closed @endif
{{ $data['takeaway_new'] }} New {{ $data['takeaway_ready'] }} Ready {{ $data['takeaway_delivered'] }} Delivered
{{ $data['booking_waiting'] }} Waiting {{ $data['booking_assigned'] }} Assigned {{ $data['booking_hold'] }} Hold {{ $data['booking_completed'] }} Done
{{ $data['whatsapp_messages'] }} {{ ucfirst($data['status']) }} View
@if(count($monitoringData) == 0)
No Branches Found

Create your first branch to start monitoring.

Add Branch
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush