@foreach($addonServices as $key => $addonService)
@php
$include_with_packages=[];
if ($addonService->add_on_type!=null)
{
$include_with_packages = json_decode($addonService->add_on_type);
}
@endphp
{{ $addonService->service_name }}
@if(in_array($sessionCart[$indx]['package_name'], $include_with_packages) )
(Included with this package)
@endif
{{--
{{ $addonService->short_desc }}
--}}
£{{ $addonService->price }}
{{-- @if( isset(end($sessionCart)['addon_service']) && in_array($addonService->id, end($sessionCart)['addon_service']) )
Add
@else --}}
Add
{{-- @endif --}}
@endforeach