@extends('layouts.admin') @php $dir = asset(Storage::url('uploads/plan')); @endphp @section('page-title') {{__('Manage Plan')}} @endsection @section('breadcrumb') @endsection @section('action-btn')
@can('create plan') @if(isset($admin_payment_setting) && !empty($admin_payment_setting)) @if($admin_payment_setting['is_stripe_enabled'] == 'on' || $admin_payment_setting['is_paypal_enabled'] == 'on' || $admin_payment_setting['is_paystack_enabled'] == 'on' || $admin_payment_setting['is_flutterwave_enabled'] == 'on'|| $admin_payment_setting['is_razorpay_enabled'] == 'on' || $admin_payment_setting['is_mercado_enabled'] == 'on'|| $admin_payment_setting['is_paytm_enabled'] == 'on' || $admin_payment_setting['is_mollie_enabled'] == 'on'|| $admin_payment_setting['is_skrill_enabled'] == 'on' || $admin_payment_setting['is_coingate_enabled'] == 'on' || $admin_payment_setting['is_paymentwall_enabled'] == 'on') @endif @endif @endcan
@endsection @section('content')
@foreach($plans as $plan)
{{ $plan->name }} @can('edit plan') @endcan @if (\Auth::user()->type == 'company' && \Auth::user()->plan == $plan->id)
{{ __('Active') }}
@endif

{{(env('CURRENCY_SYMBOL') ? env('CURRENCY_SYMBOL') : '$')}}{{ number_format($plan->price) }}/{{__('Month')}}

{{__('Duration : ').__(\App\Models\Plan::$arrDuration[$plan->duration])}}

  • {{($plan->max_users==-1)?__('Unlimited'):$plan->max_users}} {{__('Users')}}
  • {{($plan->max_customers==-1)?__('Unlimited'):$plan->max_customers}} {{__('Customers')}}
  • {{($plan->max_venders==-1)?__('Unlimited'):$plan->max_venders}} {{__('Vendors')}}

@if(isset($admin_payment_setting) && !empty($admin_payment_setting)) @if($admin_payment_setting['is_stripe_enabled'] == 'on' || $admin_payment_setting['is_paypal_enabled'] == 'on' || $admin_payment_setting['is_paystack_enabled'] == 'on' || $admin_payment_setting['is_flutterwave_enabled'] == 'on'|| $admin_payment_setting['is_razorpay_enabled'] == 'on' || $admin_payment_setting['is_mercado_enabled'] == 'on'|| $admin_payment_setting['is_paytm_enabled'] == 'on' || $admin_payment_setting['is_mollie_enabled'] == 'on'|| $admin_payment_setting['is_skrill_enabled'] == 'on' || $admin_payment_setting['is_coingate_enabled'] == 'on' ||$admin_payment_setting['is_paymentwall_enabled'] == 'on') @can('buy plan')
@if($plan->id != \Auth::user()->plan) @if($plan->price > 0) {{ __('Subscribe') }} @else {{__('Free Plan')}} {{-- {{__('Free')}} --}} @endif @endif
@if($plan->id != 1 && $plan->id != \Auth::user()->plan)
@if(\Auth::user()->requested_plan != $plan->id) @else @endif
@endif
@endcan @endif @endif {{-- @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):'Unlimited'}}

@endif --}} @php $plan_expire_date = \Auth::user()->plan_expire_date; @endphp @if (\Auth::user()->type == 'company' && \Auth::user()->plan == $plan->id)

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

@endif
@endforeach
@endsection