@extends('layout.app') @section('title','Visites en cours') @section('page_title','Suivi des visites en cours') @section('content')
{{-- HEADER --}}
Suivi en temps réel
{{-- FILTRES --}}
{{-- SEARCH --}}
{{-- USER --}}
{{-- CITY --}}
{{-- STATUS --}} {{-- DATE FROM --}}
{{-- DATE TO --}}
{{-- BTN --}}
{{-- MESSAGE --}} @if(session('success'))
{{ session('success') }}
@endif {{-- TABLE --}}
@forelse($visits as $v) {{-- ID --}} {{-- USER --}} {{-- CITY --}} {{-- CLIENT --}} {{-- START --}} {{-- END --}} {{-- DURATION --}} {{-- STATUS --}} {{-- ACTION --}} @empty @endforelse
# Délégué Secteur Client Début Fin Durée Statut Actions
{{ $v->id }}{{ $v->user?->name ?? '-' }}
{{ $v->listing?->city?->name ?? '-' }}
{{ $v->listing?->city?->region ?? '' }}
{{ $v->listing?->name ?? '-' }}
{{ optional($v->listing)->type ?? '-' }} / {{ optional($v->listing)->specialty ?? '' }}
{{ $v->start_time?->format('d/m/Y H:i') ?? '-' }} {{ $v->end_time?->format('d/m/Y H:i') ?? '-' }} {{ $v->duration ?? '-' }} @switch($v->status) @case('in_progress') En cours @break @case('finished') Terminée (sans rapport) @break @case('cancelled') Annulée @break @default - @endswitch
Aucune visite en cours trouvée
{{-- PAGINATION --}}
{{ $visits->appends(request()->except('page'))->links('vendor.pagination.bootstrap-5-fa') }}
@endsection