@extends('layouts.admin') @php $dir = asset(Storage::url('uploads/plan')); $admin_payment_setting = Utility::getAdminPaymentSetting(); @endphp @section('page-title') {{ __('Plans') }} @endsection @section('title') {{ __('Manage Plan') }} @endsection @section('action-btn') @can('create plan')
@if (App\Models\Utility::getPaymentIsOn() && \Auth::user()->type == 'super admin') @endif
@endcan @endsection @section('breadcrumb') @endsection @section('content')
@foreach ($plans as $plan)
{{ $plan->name }} @if (\Auth::user()->type == 'company' && \Auth::user()->plan == $plan->id)
{{ __('Active') }}
@endif @if (\Auth::user()->type == 'super admin') @can('edit plan') @endcan @endif {{ !empty($admin_payment_setting['CURRENCY_SYMBOL']) ? $admin_payment_setting['CURRENCY_SYMBOL'] : '$' }}{{ $plan->price }}{{ __('/ Duration : ') . __(ucfirst($plan->duration)) }}

{{ 'Free Trial Day : ' }}{{ $plan->trial_day }}

{{ $plan->description }}

  • {{ count($plan->getThemes()) }} {{ __('Themes') }}
  • {{ $plan->business == '-1' ? 'Unlimited' : $plan->business }} {{ __('Business') }}
  • {{ $plan->max_users == '-1' ? 'Unlimited' : $plan->max_users }} {{ __('Users') }}
  • @if ($plan->enable_custdomain == 'on')
  • {{ __('Custom Domain') }}
  • @else
  • {{ __('Custom Domain') }}
  • @endif @if ($plan->enable_custsubdomain == 'on')
  • {{ __('Sub Domain') }}
  • @else
  • {{ __('Sub Domain') }}
  • @endif @if ($plan->enable_branding == 'on')
  • {{ __('Branding') }}
  • @else
  • {{ __('Branding') }}
  • @endif @if ($plan->enable_qr_code == 'on')
  • {{ __('QR Code') }}
  • @else
  • {{ __('QR Code') }}
  • @endif @if ($plan->pwa_business == 'on')
  • {{ __('Progressive Web App (PWA)') }}
  • @else
  • {{ __('Progressive Web App (PWA)') }}
  • @endif @if ($plan->enable_chatgpt == 'on')
  • {{ __('Chatgpt') }}
  • @else
  • {{ __('Chatgpt') }}
  • @endif
  • {{ $plan->storage_limit }} {{ __('MB Storage Limit') }}
@if (\Auth::user()->type == 'company' && \Auth::user()->trial_expire_date) @if (\Auth::user()->type == 'company' && \Auth::user()->is_trial_plan == $plan->id)

{{ __('Plan Trial Expired : ') }} {{ !empty(\Auth::user()->trial_expire_date) ? \Auth::user()->dateFormat(\Auth::user()->trial_expire_date) : 'lifetime' }}

@endif @else @if (\Auth::user()->type == 'company' && \Auth::user()->plan == $plan->id)

{{ __('Plan Expired : ') }} {{ !empty(\Auth::user()->plan_expire_date) ? \Auth::user()->dateFormat(\Auth::user()->plan_expire_date) : 'lifetime' }}

@endif @endif
@if ($plan->is_trial == 'on' && \Auth::user()->type != 'super admin') @if (\Auth::user()->is_trial_plan == 0 && \Auth::user()->trial_expire_date == null) @endif @endif
@if ( \Auth::user()->type == 'company' && (empty(\Auth::user()->plan_expire_date) || \Auth::user()->plan_expire_date < date('Y-m-d'))) @if (App\Models\Utility::getPaymentIsOn()) @if (\Auth::user()->type == 'company' && \Auth::user()->plan != $plan->id) @if ($plan->price > 0) @can('buy plan') @endcan @endif @endif @endif @else @if (App\Models\Utility::getPaymentIsOn()) @if ($plan->id != \Auth::user()->plan && \Auth::user()->type == 'company') @if ($plan->price > 0) @can('buy plan') @endcan @endif @endif @endif @endif
@if (\Auth::user()->type != 'super admin' && \Auth::user()->plan != $plan->id) @if ($plan->id != 1) @if (\Auth::user()->requested_plan != $plan->id) @else @endif @endif @endif
@endforeach
@endsection