@if (auth()->user()->agent_code == 'Tele sales')
Number |
Type |
Action |
@foreach ($data as $item)
{{$item->number}}
|
{{$item->type}}
|
Reserve Now
|
@endforeach
@else
Number |
Type |
Status |
Action |
@foreach ($data as $item)
@php
$date = \Carbon\Carbon::parse($item->created_at);
$now = \Carbon\Carbon::now();
$diff = $date->diffInDays($now);
@endphp
@if ($diff <= 5)
{{-- {{\Carbon\Carbon::createFromTimeStamp(strtotime($item->created_at))->diffForHumans()}} --}}
{{$item->number}} | (NEW)
|
@else
{{-- {{\Carbon\Carbon::createFromTimeStamp(strtotime($item->created_at))->diffForHumans()}} --}}
{{$item->number}}
|
@endif
{{$item->type}}
|
{{$item->channel_type}}
|
Reserve Now
|
@endforeach
@endif