@extends('layouts.app') @section('title', 'RTSP Cameras') @push('scripts') @endpush @section('content')
RTSP Cameras
@if($cameras->isEmpty())
No cameras configured yet.
@else
@foreach($cameras as $cam)
{{-- Snapshot preview --}} @if($cam->snapshot_url)
Snapshot LIVE
@else
@endif
{{ $cam->name }}
@if($cam->location)
{{ $cam->location }}
@endif @if($cam->chainage)
{{ $cam->chainage }} @if($cam->highway)— {{ $cam->highway }}@endif
@endif
{{ $cam->is_active ? 'Active' : 'Inactive' }}
{{-- RTSP URL --}}
RTSP URL
{{ $cam->rtspDisplay() }}
{{-- Actions --}}
VLC @if($cam->snapshot_url) @endif @if($cam->snapshot_url) @endif
@csrf @method('DELETE')
@endforeach
@endif {{-- Add Camera Modal --}} {{-- Edit Camera Modal --}} {{-- Snapshot Modal --}} @endsection