@foreach($tourpackage_destinations as $key => $tour_packages_place)
@php
$destination_id = $tour_packages_place->id;
$destination_name = $tour_packages_place->destination_name;
if($key == 0)
$show_active ='show active';
else
$show_active ='';
@endphp
{{-- Collapse Todos --}}
Todos
@php
$todo_count = '';
if(!empty($tour_packages_place->tour_package_todos->count())):
$todo_count = $tour_packages_place->tour_package_todos->count();
endif;
@endphp
{{$todo_count}}
@foreach($tour_packages_place->tour_package_todos as
$tour_package_todos)
@php
$images = explode(',',$tour_package_todos->image);
@endphp
{{$tour_package_todos->title}}
{{-- {{$tour_package_todos->subCategory->name ?? ''}}, --}}
{{$tour_package_todos->category->name ?? ''}}
{{$tour_package_todos->todos_description}}
@endforeach
{{-- Collapse Hotels --}}
Hotels
@php
$hotel_count = '';
if(!empty($tour_packages_place->tour_package_hotels->count())):
$hotel_count = $tour_packages_place->tour_package_hotels->count();
endif;
@endphp
{{$hotel_count}}
@foreach($tour_packages_place->tour_package_hotels as
$key=>$tour_package_hotel)
@php
$images = explode(',',$tour_package_hotel->image);
$margin_class = '';
if(($key+1)%2 ==0)
{
//$margin_class = 'margin-left:10px;';
}
@endphp
{{$tour_package_hotel->hotel_name}}
{{$tour_package_hotel->address}}
{{$tour_package_hotel->hotel_description}}
@endforeach
{{-- Collapse Food --}}
Foods
@php
$food_count = '';
if(!empty($tour_packages_place->tour_package_foods->count())):
$food_count = $tour_packages_place->tour_package_foods->count();
endif;
@endphp
{{$food_count}}
@foreach($tour_packages_place->tour_package_foods as
$tour_package_food)
@php
$images = explode(',',$tour_package_food->image);
$margin_class = '';
if(($key+1)%2 ==0)
{
//$margin_class = 'margin-left:10px;';
}
@endphp
{{$tour_package_food->name}}
{{-- {{$tour_package_food->subCategory->name ?? ''}}, --}}
{{$tour_package_food->category->name ?? ''}}
{{$tour_package_food->food_description}}
@endforeach
{{-- Collapse Shop --}}
Shops
@php
$shop_count = '';
if(!empty($tour_packages_place->tour_package_shops->count())):
$shop_count = $tour_packages_place->tour_package_shops->count();
endif;
@endphp
{{$shop_count}}
@foreach($tour_packages_place->tour_package_shops as
$tour_package_shop)
@php $images = explode(',',$tour_package_shop->image); @endphp
{{$tour_package_shop->shop_name}}
{{$tour_package_shop->address}}
{{$tour_package_shop->shop_description}}
@endforeach
@endforeach