@extends('layouts.backend.app') @section("content")
@if(Session::has('success'))

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

@endif

Listes des contrats Auto

@foreach($contrats_auto as $key => $c) @endforeach
# N°Commande Nom du client Contact Debut Durée (Mois) Echéance Status Actions
{{++$key}} {{$c->number_n}} {{$c->lastname}} {{$c->firstname}} {{$c->contact}} {{date('d/m/Y', strtotime($c->releasedate))}} {{$c->nbmois}} {{ date('d/m/Y', strtotime($c->releasedate . "+$c->nbmois months -1 days")). " 23:59:59" }} @if( (strtotime($c->releasedate . "+$c->nbmois months")) < (strtotime(date('Y-m-d'))) ) @else @endif
{{--
--}}

Listes des contrats Voyage

@foreach($contrats_voyage as $key => $c) @endforeach
# N°Commande Nom du client Debut Echéance Status Actions
{{++$key}} {{$c->number_n}} {{$c->lastname}} {{$c->firstname}}
: {{$c->contact}}
: {{getCountryById($c->nationality_id)}}
{{date('d/m/Y', strtotime($c->departure_date))}} {{date('d/m/Y', strtotime($c->arrival_date))}} @if( (strtotime($c->arrival_date)) < (strtotime(date('Y-m-d'))) ) @else @endif
{{--
--}}
@endsection @section('header-script') @endsection @section('footer-script') @endsection @section('custom-script') @endsection