@php($restaurant_id = \App\CentralLogics\Helpers::get_restaurant_id())
@foreach($campaigns as $key=>$campaign)
{{$key+1}} |
{{Str::limit($campaign['title'],25,'...')}}
|
|
{{$campaign->start_date?$campaign->start_date->format('d M, Y'). ' - ' .$campaign->end_date->format('d M, Y'): 'N/A'}}
|
{{$campaign->start_time?date(config('timeformat'),strtotime($campaign->start_time)). ' - ' .date(config('timeformat'),strtotime($campaign->end_time)): 'N/A'}}
|
restaurants as $restaurant)
{
$restaurant_ids[] = $restaurant->id;
}
?>
@if(in_array($restaurant_id,$restaurant_ids))
@else
@endif
|
@endforeach