@extends('layouts.master') @section('title')History @stop @section('content')

History for {{ $tenant->building->address }} Apt {{ $tenant->apartment }}

@if ($tenant->parkingRequests()->get()->isEmpty())

No Parking Requests

@else
@foreach ($tenant->parkingRequests()->get()->sortByDesc('created_at') as $p) @if (!empty($p->comments)) @endif @endforeach
License Plate Make Model Colour Apartment Start Date End Date Date/Time Added
{{ $p->car->license_plate }} {{ $p->car->make }} {{ $p->car->model }} {{ $p->car->colour }} {{ $p->tenant->apartment }} {{ $p->start_date }} {{ $p->end_date }} {{ $p->created_at->format('F d, Y h:ia') }}
Comments
{{ $p->comments }}
@endif
@stop