@extends('frontend.layouts.app') @push('title') {{ $title }} @endpush @section('content')
@auth()
@if ($user->currentMembership)

@else

!

@endif
@if (auth()->user() && $user->currentMembership)

{{ __('Currently you are') }} {{ $user->currentMembership->membership->title }} {{ __('Member') }}

{{ __('Expire at') }} : {{ $user->currentMembership->expired_date }}

@else

{{ __('Currently you have no membership plan') }}

@endif
@endauth
@forelse ($all_membership as $membership)

{{ $membership->title }}

{{ showPrice($membership->price) }}/{{ $membership->duration }}{{ getDurationType($membership->duration_type) }}

@if (auth()->user() && $user->currentMembership && $user->currentMembership->membership_id == $membership->id) @else {{ __('Get Membership') }} @endif
@empty

{{ __('No Membership Found') }}

@endforelse
@endsection