@extends('main.main_back') @section('title') Liste des voyages @endsection @section('pagination') Voyages @endsection @section('style-up') @endsection @section('content')
Ajouter

Liste des voyages

@isset($data) @foreach($data as $key => $value) @php $value_id = $value->id; $ref = $value->tra_ref; $bus = isset($value->bus) ? $value->bus->bus_number : ""; $bus_place = isset($value->bus) ? $value->bus->bus_place_passengers : ""; $trajet_start = isset($value->trajet) ? $value->trajet->tr_place_start : ""; $trajet_end = isset($value->trajet) ? $value->trajet->tr_place_end : ""; $trajet = $trajet_start. " - ".$trajet_end; $agency = isset($value->agency) ? $value->agency->ag_name : ""; $place_available = $value->tra_place_available; $date_depart = $value->tra_date_depart; $date_depart_format = Carbon\Carbon::parse($date_depart)->format('d/m/Y'); $date_arrived = $value->tra_date_arrived; $status = $value->tra_status; $type = $value->tra_type; $date_reg = $value->created_at; $bordereau_ref = $value->bordereau->bor_ref ?? false; $admin = nameUser($value->ad_id); @endphp @endforeach @endisset
No
Ref Bus (Nbre Place) Trajet Nbre Place Dispo Agence Date départ Type Bordereau Status Admin Date Reg Actions
{{ $key+1 }}
{{ $ref }} {{ $bus }} ({{ $bus_place }}) {{ $trajet }} {{ $place_available }} {{ $agency }} {{ $date_depart_format }} {{ $type }} @if ($bordereau_ref === false) {{ "NON" }} @else {{ "OUI" }} @endif @if ($status == 1) Actif @else Inactif @endif {{ $admin }} {{ $date_reg }}
@endsection @section("script-up") @endsection @section("script-down") @endsection