@extends('layouts.admin') @section('content')
@include('include.admin-sidebar')
List Of Contracts
@include('partials.alerts') {{ Form::open(['url' => 'admin/contracts', 'method'=>'post']) }}
{{Form::close()}}
@foreach($contracts as $contract) @endforeach
Contract ID Property Name Property Address Tenant Name Landlord Name Proposed Rent Contract Date View Contract
{{ $contract['id'] }} {{ $contract['property']['name'] }} {{ $contract['property']['address'] }} {{ $contract['tenant']['firstname'] }} {{ $contract['tenant']['lastname'] }} {{ $contract['landlord']['firstname'] }} {{ $contract['landlord']['lastname'] }} {{ $contract['bid']['propose_rent'] }} {{ date("j F, Y", strtotime($contract['created_at'])) }}

{{ $contracts->appends(['tenant_id' => $tenant_id, 'landlord_id'=>$landlord_id, 'start_date'=>$start_date, 'end_date'=>$end_date])->links() }}
Records {{ $contracts->firstItem() }} - {{ $contracts->lastItem() }} of {{ $contracts->total() }}
@include('include.admin-footer') @endsection