@extends('layouts.default')
@section('title', 'Allocated List')
@section('header-links')
@include('includes.headers.guesthouses')
@endsection
@section('new_button')
{!! Form::text('search', request('search'), ['id'=>'tableSearch','class' => 'form-control input-filter input-sm', 'placeholder' => 'Search here']) !!} search
add Create Guest House
@endsection
@section('content')
Consultant |
Email |
Mobile |
Guest House |
Start - End |
Duration |
Action |
@foreach($list as $li)
@php
$start = ($li->allocated_on != '')?date(env('APP_DATE'), strtotime($li->allocated_on)):'';
$end = ($li->leaves_on != '')?date(env('APP_DATE'), strtotime($li->leaves_on)):'';
if($end != '') {
$duration = dateDifference($li->allocated_on, $li->leaves_on);
} else {
$duration = 'Staying';
}
@endphp
{{ ucwords($li->consultant->name) }} |
{{ $li->consultant->email }} |
{{ $li->consultant->mobile }} |
{{ $li->guesthouse->name }} |
{{ $start }} - {{ $end }} |
{{ $duration }} |
|
@endforeach
@if(count($list) == 0)
No data |
@endif
@stop