@extends("front.$version.layout") @section('pagename') - {{__('Order of') . ' ' . $package->title}} @endsection @section('meta-keywords', "$package->meta_keywords") @section('meta-description', "$package->meta_description") @section('content') @section('breadcrumb-title', __('Package Order')) @section('breadcrumb-subtitle') {{__('Place Order for')}}

{{convertUtf8($package->title)}}

@endsection @section('breadcrumb-link', __('Package Order'))
@csrf
@php $name = ''; if(empty(old())) { if (Auth::check()) { $name = Auth::user()->fname; } } else { $name = old('name'); } @endphp @if ($errors->has("name"))

{{$errors->first("name")}}

@endif
@php $email = ''; if(empty(old())) { if (Auth::check()) { $email = Auth::user()->email; } } else { $email = old('email'); } @endphp @if ($errors->has("email"))

{{$errors->first("email")}}

@endif
@foreach ($inputs as $input)
@if ($input->type == 1) name")}}" placeholder="{{convertUtf8($input->placeholder)}}"> @endif @if ($input->type == 2) @endif @if ($input->type == 3) @foreach ($input->package_input_options as $option)
name")) && in_array(convertUtf8($option->name), old("$input->name")) ? 'checked' : ''}}>
@endforeach @endif @if ($input->type == 4) @endif @if ($input->type == 6) name")}}" placeholder="{{convertUtf8($input->placeholder)}}" autocomplete="off"> @endif @if ($input->type == 7) name")}}" placeholder="{{convertUtf8($input->placeholder)}}" autocomplete="off"> @endif @if ($input->type == 5)

** {{__('Only zip file is allowed')}}

@endif @if ($errors->has("$input->name"))

{{$errors->first("$input->name")}}

@endif
@endforeach
@if (count($gateways) + count($ogateways) > 0)
@if ($errors->has('receipt'))

{{$errors->first('receipt')}}

@endif
@endif {{-- show payment form here if available --}}
@if ($bex->recurring_billing == 1)

{{__('Order Summay')}}

  • {{__('Package')}}: {{$package->title}}
  • {{__('Duration')}}: {{$package->duration == 'monthly' ? __('Monthly') : __('Yearly')}}
  • {{__('Price')}}: {{$bex->base_currency_text_position == 'left' ? $bex->base_currency_text : ''}} {{$package->price}} {{$bex->base_currency_text_position == 'right' ? $bex->base_currency_text : ''}}
  • @php // if there is a current active subscription for this user $activeSub = App\Subscription::where('user_id', Auth::user()->id)->where('status', 1); if($package->duration == 'monthly') { $days = 30; } elseif ($package->duration == 'yearly') { $days = 365; } if ($activeSub->count() > 0) { $activationDay = \Carbon\Carbon::parse($activeSub->first()->expire_date); $expireDay = \Carbon\Carbon::parse($activeSub->first()->expire_date)->addDays($days); } else { $activationDay = \Carbon\Carbon::now(); $expireDay = \Carbon\Carbon::now()->addDays($days); } @endphp
  • {{__('Activation Date')}}:
  • {{__('Expire Date')}}:
@else @includeIf("front.$version.package-order") @endif
@endsection @section('scripts') @if (count($gateways) + count($ogateways) > 0) @endif @endsection