@extends('layouts.app') @section("breadcrumb")
  • @lang('fleet.serviceReminders')
  • @endsection @section('content')

    @lang('fleet.serviceReminders')

    @php $user = App\Model\User::find(Auth::id()); @endphp @if ($type = "service-reminder") @php ($type = "App\Notifications\ServiceReminderNotification") @endif @foreach ($user->unreadNotifications as $notification) @if($notification->type==$type) @php($notification->markAsRead()) @endif @endforeach @foreach($reminder as $data) @foreach ($user->notifications as $notification) @if($data->id == $notification->data['vid']) @if($notification->type == $type) @php ($to = \Carbon\Carbon::now()) @php ($from = \Carbon\Carbon::createFromFormat('Y-m-d', $notification->data['date'])) @php ($diff_in_days = $to->diffInDays($from)) @endif @endif @endforeach @endforeach
    @lang('fleet.vehicle') @lang('fleet.notification') @lang('fleet.remaining_days')
    @if($data->vehicle['vehicle_image'] != null) @else @endif {{$data->vehicle->year}} {{$data->vehicle->make}} {{$data->vehicle->model}}
    @lang('fleet.vin'):{{$data->vehicle->vin}}
    @lang('fleet.plate'):{{$data->vehicle->license_plate}}
    {{ $notification->data['msg'] }} {{$diff_in_days}}
    @endsection