@extends('layouts.master') @section('content')

Liste des missions locales et voyages internationaaux



@if(Session::has('message'))
{{Session::get('message')}}
@endif @if(Session::has('message_error'))

{{Session::get('message_error')}}

@endif

Liste des missions locales

@if(Auth()->user()->roles()->whereIn('role_id', [1,2,12])->exists()) Générer une nouvelle mission locale @endif
@foreach($missions_locales as $key=>$mc) @endforeach
No Reference Date de création Fait par Action
{{++$key}} @if($mc->stat_ended==0) {{$mc->reference_mc}} @elseif(Auth()->user()->roles()->whereIn('role_id', [1, 13])->exists()) {{$mc->reference_mc}} @else {{$mc->reference_mc}} @endif {{date('d-m-Y', strtotime($mc->created_at))}} {{$mc->name}} @if($mc->stat_ended==0) @if(Auth()->user()->roles()->whereIn('role_id', [1, 12])->exists()) Block @else En cours... @endif @else Blocked @endif
@if(Auth()->user()->roles()->whereIn('role_id', [1,2,12])->exists()) @endif
@foreach($voyages as $key=>$voy) @endforeach
No Reference Trajet Type mission Date debut date fin VS Pulling Semi VR Description charroi Description general Action
{{++$key}} @if(Auth()->user()->roles()->whereIn('role_id', [1,2,12,29])->exists()) {{$voy->reference_voy}} @else {{$voy->reference_voy}} @endif {{$voy->trajet}} {{$voy->nom_type_m}} {{$voy->date_depart}} {{$voy->date_fin_mission}} {{$voy->nbre_veh_souhaite}} {{$voy->nbre_veh_pulling}} {{$voy->nbre_veh_semi}} {{$voy->nbre_veh_reel}} {{$voy->description_charroi}} {{$voy->description_general}} @if($voy->stat_ended==0) @if(Auth()->user()->roles()->whereIn('role_id', [1, 12])->exists()) Block @else En cours... @endif @else Blocked @endif
@stop @section('page-script') @stop