@extends(getTemplate('public')) @section('content') @push('custom-css') @endpush

{{setting('memberships_placeholder_title')}}

{!! setting('memberships_placeholder_text') !!}

@foreach($memberships as $membership) @php $currency = new Currency($membership->currency_id); @endphp
@if($membership->featured == 'yes')
{{$membership->name}} @if($membership->price > 0) @if($membership->vat > 0 && $membership->show_vat === 'yes') @php $price = number_format(($membership->price + (($membership->price * $membership->vat) / 100)),2,'.',','); @endphp

{{$currency->symbol}}{{$price}} VAT Inclusive

@else @php $price = number_format($membership->price,2,'.',','); @endphp

{{$currency->symbol}}{{$price}} VAT Exclusive

@endif @else

{{$currency->symbol}}0.00 Free Membership

@endif
    @php $amenity_ids = strpos($membership->amenities,',') !== FALSE ? explode(',',$membership->amenities) : [$membership->amenities]; @endphp @if(count($amenity_ids) > 0) @if(count($amenity_ids) > 0) @php $a = new Amenity(); $amenities = $a->where_in('id',$amenity_ids)->get(); @endphp @if($amenities->exists()) @foreach($amenities as $amenity)
  • {{ucwords($amenity->name)}}
  • @endforeach @endif @endif @endif
@if($membership->questionnaire == 'yes') APPLY NOW @else BOOK NOW @endif
@else
{{$membership->name}} @if($membership->price > 0) @if($membership->vat > 0 && $membership->show_vat === 'yes') @php $price = number_format(($membership->price + (($membership->price * $membership->vat) / 100)),2,'.',','); @endphp

{{$currency->symbol}}{{$price}} VAT Inclusive

@else @php $price = number_format($membership->price,2,'.',','); @endphp

{{$currency->symbol}}{{$price}} VAT Exclusive

@endif @else

{{$currency->symbol}}0.00 Free Membership

@endif
    @php $amenity_ids = strpos($membership->amenities,',') !== FALSE ? explode(',',$membership->amenities) : [$membership->amenities]; @endphp @if(count($amenity_ids) > 0) @if(count($amenity_ids) > 0) @php $a = new Amenity(); $amenities = $a->where_in('id',$amenity_ids)->get(); @endphp @if($amenities->exists()) @foreach($amenities as $amenity)
  • {{ucwords($amenity->name)}}
  • @endforeach @endif @endif @endif
@if($membership->questionnaire == 'yes') APPLY NOW @else BOOK NOW @endif
@endif
@endforeach
@push('custom-js') @endpush @endsection