@extends('layouts.default') @section('title', 'Allocated List') @section('header-links') @include('includes.headers.guesthouses') @endsection @section('new_button') add Create Guest House @endsection @section('content')
@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 @endforeach @if(count($list) == 0) @endif
Consultant Email Mobile Guest House Start - End Duration Action
{{ ucwords($li->consultant->name) }} {{ $li->consultant->email }} {{ $li->consultant->mobile }} {{ $li->guesthouse->name }} {{ $start }} - {{ $end }} {{ $duration }}
No data
@stop