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

{{ucwords($membership->name)}}

@php $currency = new Currency($membership->currency_id); @endphp @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($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))))
@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))))
{!!$membership->get_questionnaire_fields()!!}
@else

No Such Membership

@endif
@endif
{!! $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)
{{ucwords($amenity->name)}}
@endforeach @endif @endif @endif
@if($membership->exists()) @else

No Service Found or has been Deleted

@endif
@push('custom-js') @endpush @endsection