@extends('owner._layout') @section('body')
@if(session('message')) @endif
Make an appointment
Maintenance history:
@if($maintenances) @foreach($maintenances as $maintenance) @endforeach @else @endif
Date Truck # Driver Invoice
{{ date('j M Y', strtotime($maintenance->appointment)) }} {{ $maintenance->truckData->number }} {{ $maintenance->userData->firstname.' '.$maintenance->userData->lastname }} @if($maintenance->status == 1) Download @else {!! strtotime(date('j M Y', strtotime($maintenance->appointment))) >= strtotime(date('j M Y', strtotime(now()))) ? 'waiting' : 'canceled' !!} @endif
No maintenance history
@endsection @section('script') @endsection