@extends(getTemplate('public')) @section('content') @push('custom-css') @endpush
@if($membership->exists() && $membership->active == 'yes' && ($membership->status === 'public' OR ($membership->status === 'private' && ((int)$this->user->id === (int)$membership->user_id OR auth()->user()->is_admin)))) @php $currency = new Currency($membership->currency_id); $groups_allowed_to_book = explode(',', setting('memberships_shop_groups')); @endphp
  • @if($membership->featured == 'yes')
     Featured
    @endif

    {{$membership->name}}

    Membership Plan

    {!!$membership->description!!}
    @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) @endforeach
    @endif @endif @endif
    @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
    @if(auth()->user()->hasAnyRole($groups_allowed_to_book)) @if(($membership->questionnaire == 'yes' || $membership->approval == 'yes')) APPLY NOW @else BOOK NOW @endif @else SORRY,YOU ARE NOT ALLOWED TO BOOK A MEMBERSHIP. PLEASE CONTACT MANAGEMENT @endif
@else @endif
@push('custom-js') @endpush @endsection