@extends('layouts.admin') @section('content')
@include('include.admin-sidebar')
List of Bids
{{ Form::open(['url' => 'admin/bids', 'method'=>'post']) }}
View All
{{Form::close()}} @include('partials.alerts') @if(sizeof($bids))

@foreach($bids as $bid) @endforeach
@sortablelink('id','ID') @sortablelink('property.name','Property Name') Property Address @sortablelink('tenant.firstname','Tenant Name') @sortablelink('propose_rent','Proposed Rent') @sortablelink('move_in_date','Move In Date') Employment Status Bid Status Bid Select Time Created On Contract Tenancy Contract Starting Date Tenancy Contract End Date
{{ $bid['id'] }} {{ $bid['property']['name'] }} {{ $bid['property']['address'] }} {{ $bid['tenant']['firstname'] }} {{ $bid['tenant']['lastname'] }} {{ number_format($bid['propose_rent'],2) }} {{ date("j F, Y", strtotime($bid['move_in_date'])) }} {{ $bid['EmploymentStatus']['name'] }} {{ $bid['BidStatus']['name'] }} {{ (!empty($bid['bid_selection_time'])) ? date("j F, Y g:i:A", strtotime($bid['bid_selection_time'])) : '' }} {{ date("j F, Y g:i:A", strtotime($bid['created_at'])) }} @if(!empty($bid['tenancy_contract_starting_date'])) @endif @if(!empty($bid['tenancy_contract_starting_date'])) {{ date("j F, Y", strtotime($bid['tenancy_contract_starting_date'])) }} @endif @if(!empty($bid['tenancy_contract_end_date'])) {{ date("j F, Y", strtotime($bid['tenancy_contract_end_date'])) }} @endif

{{ $bids->appends(\Request::except('page'))->render() }}
Records {{ $bids->firstItem() }} - {{ $bids->lastItem() }} of {{ $bids->total() }}
@else {{ 'No records to display' }} @endif
@include('include.admin-footer') @endsection