@extends('layouts.app') @section('content')
@if(in_array(Auth::user()->id, $allowedUsers)) @endif

{{$rent->marka}}

{{__('Vehicle with plate')}} {{$rent->reg_br}} {{__('rented by')}} {{$rent->name.' '.$rent->surname}}.

{{__('Vehicle')}} {{$rent->marka}} {{__('rented by')}} {{$rent->name.' '.$rent->surname}} {{__('at')}} @if($rent->rent_date){{date('d.m.Y H:i:s', strtotime($rent->rent_date))}}@endif

{{__('Vehicle state after return')}}

@if($rent->return_date)

{{__('Vehicle')}} {{$rent->marka}} {{__('returned by')}} {{$rent->name.' '.$rent->surname}} {{__('at')}} @if($rent->return_date){{date('d.m.Y H:i:s', strtotime($rent->return_date))}}@endif

@else

{{__('Vehicle not returned')}}

@endif
@if(!$comments->isEmpty())

{{__('Comments')}}

@foreach($comments as $br=>$comment) {{__('comment')}} {{$br+1}}

{{$comment->comment}}

{{$comment->ime.' '.$comment->prezime}} {{date('d.m.Y. H:i:s', strtotime($comment->created_at))}}
@endforeach
@endif @endsection