@extends('layouts.app') @section("breadcrumb")
  • @lang('menu.notifications')
  • @endsection @section('content')

    @lang('menu.notifications')

    @php $user = App\Model\User::find(Auth::id()); @endphp @if ($type = "renew-driving-licence") @php ($type = "App\Notifications\RenewDriverLicence") @endif @foreach ($user->unreadNotifications as $notification) @if($notification->type==$type) @php($notification->markAsRead()) @endif @endforeach @foreach($driver as $data) @foreach ($user->notifications as $notification) @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)) @if($data->id == $notification->data['vid']) @endif @endif @endforeach @endforeach
    @lang('fleet.name') @lang('fleet.driverImage') @lang('fleet.notification') @lang('fleet.remaining_days')
    {{$data->getMeta('first_name')}} {{$data->getMeta('last_name')}} @if($data->getMeta('profile_image') == null) @else @endif @lang('fleet.driver_licence') {{ $notification->data['msg'] }} {{$diff_in_days}}
    @endsection