@extends('mainapp::layouts.frontend.master') @section('content')

{{ ___('common.School Details') }}

@csrf
@if($data['subdomain_name']) @endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('sub_domain_key')) {{ $errors->first('sub_domain_key') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if ($errors->has('address')) {{ $errors->first('address') }} @endif
@if ($data['package']->payment_type == \Modules\MainApp\Enums\PackagePaymentType::PREPAID || @$data['previousDue'] > 0)

{{ ___('common.Payment Method') }}

{{ ___('common.You will be redirected to the PayPal website after submitting your order') }}

@endif
@php $button = session()->has('subdomainForPackageUpgrade') ? ___('ui_element.upgrade') : ___('ui_element.confirm'); @endphp @if ($data['package']->payment_type == \Modules\MainApp\Enums\PackagePaymentType::PREPAID || @$data['previousDue'] > 0) @else @endif

{{ $data['package']->name }}

@if ($data['package']->popular == 1) {{ ___('common.Most Popular') }} @endif

${{ $data['package']->price }} / @if ($data['package']->duration == \App\Enums\PricingDuration::DAYS) {{ $data['package']->duration_number }} {{ ___('common.days') }} @elseif ($data['package']->duration == \App\Enums\PricingDuration::MONTHLY) {{ $data['package']->duration_number }} {{ ___('common.monthly') }} @elseif ($data['package']->duration == \App\Enums\PricingDuration::YEARLY) {{ $data['package']->duration_number }} {{ ___('common.yearly') }} @else {{ ___('common.lifetime') }} @endif

  • {{ ___('common.Plan Name') }} {{ $data['package']->name }}
  • {{ ___('common.Start Date') }} {{ date('d M Y') }}
  • {{ ___('common.End Date') }} @if ($data['package']->duration == \App\Enums\PricingDuration::DAYS) {{ date("d M Y", strtotime("+ ". $data['package']->duration_number ." day")); }} @elseif ($data['package']->duration == \App\Enums\PricingDuration::MONTHLY) {{ date("d M Y", strtotime("+ ". $data['package']->duration_number ." month")); }} @elseif ($data['package']->duration == \App\Enums\PricingDuration::YEARLY) {{ date("d M Y", strtotime("+ ". $data['package']->duration_number ." year")); }} @else {{ ___('common.Lifetime') }} @endif
  • {{ ___('common.Price') }} ${{ $data['package']->price }}
  • @if (@$data['previousDue'] > 0)
  • {{ ___('common.Previous Due') }} ${{ number_format(@$data['previousDue'], 2, '.', '') }}
  • @endif
{{ ___('common.Total Subscription Cost') }} ${{ number_format($data['package']->price + @$data['previousDue'], 2, '.', '') }}
@endsection