@extends('admin.layouts.master') @section('title') Rentals @stop @section('style') @stop @section('content')

Rentals

{{----}}
{{--@if (Auth::user()->role_id == 4)
@else--}} {{--@endif--}} {{--@if (Auth::user()->role_id == 4) @else @endif--}} @if (isset($rentals)) @foreach($rentals as $rental) {{--@if (Auth::user()->role_id == 4) @else--}} {{--@endif--}} @endforeach @endif
ID Rental Contract Date Client Name Authorized Name Property Location Monthly Rent Deposit Advanced Agent ManagerActionsActions
{{$rental->id}} {{date("d-M-Y", strtotime($rental->contract_date))}} {{$rental->client->client_name ?? '' }} {{$rental->authorized_name ?? '' }} {{$rental->prop_location ?? '' }} {{number_format($rental->monthly_rent,2)}} {{number_format($rental->deposit,2)}} {{number_format($rental->advance,2)}} {{strtoupper($rental->agent->code) ?? '' }} {{$rental->manager->fullname ?? '' }} {{----}}
@if(Session('info'))
@endif
@stop @section('script') @stop