@extends('layouts.master') @section('title') {{ __('plans') }} @endsection @section('content')
@if ($upcoming_package)

{{ __('note') }} : {{ __('if_youve_already_made_payment_for_your_upcoming_plan_changes_or_updates_to_the_current_and_upcoming_plan_will_not_be_permitted') }}

@endif
@foreach ($packages as $package)
@if ($package->is_trial != 1) @if ($package->type == 1) {{ __('postpaid') }} @else {{ __('prepaid') }} @endif @endif

{{ __($package->name) }}

{{ $package->description }}


@if ($package->is_trial == 1)
{{ __('package_information') }}
{{ __('student_limit') }} : {{ $settings['student_limit'] }}
{{ __('staff_limit') }} : {{ $settings['staff_limit'] }}
{{ $settings['trial_days'] }} / {{ __('days') }}
@elseif($package->type == 0)
{{ __('package_price_information') }}

{{ $settings['currency_symbol'] }} {{ $package->charges }}

{{ __('student_limit') }} : {{ $package->no_of_students }} / {{ __('staff_limit') }} : {{ $package->no_of_staffs }}
{{ $package->days }} / {{ __('days') }}
@else
{{ __('package_price_information') }}
{{ __('per_student_charges') }} : {{ $settings['currency_symbol'] }} {{ $package->student_charge }} / {{ __('per_staff_charges') }} : {{ $settings['currency_symbol'] }} {{ $package->staff_charge }}
{{ $package->days }} / {{ __('days') }}
@endif

    @foreach ($features as $feature) @if (in_array($feature->id, $package->package_feature->pluck('feature_id')->toArray()))
  • {{ __($feature->name) }}
  • @else
  • {{ __($feature->name) }}
  • @endif @endforeach
@if (!$upcoming_package) @if ($current_plan) @if ($package->id == $current_plan->package_id) {{-- Set upcoming --}} @else
{{-- Start Immediate plan --}} @if ($paymentConfiguration && $package->type == 0)
@csrf
@else {{ __('update_current_plan') }} @endif
{{-- Set upcoming --}}
@endif @else @if ($paymentConfiguration && $package->type == 0) {{-- New subscription --}}
@csrf
@else @endif @endif @endif
@endforeach
@endsection @section('js') @foreach ($packages as $package) @endforeach @endsection