@extends($layout) @section('title', __('superadmin::lang.subscription')) @section('content')
@include('superadmin::layouts.partials.currency')
@lang('superadmin::lang.pay_and_subscribe')

{{$package->name}} ({{$package->price}} / {{$package->interval_count}} {{ucfirst($package->interval)}} )

@if($package->location_count == 0) @lang('superadmin::lang.unlimited') @else {{$package->location_count}} @endif @lang('business.business_locations')

@if($package->user_count == 0) @lang('superadmin::lang.unlimited') @else {{$package->user_count}} @endif @lang('superadmin::lang.users')

@if($package->product_count == 0) @lang('superadmin::lang.unlimited') @else {{$package->product_count}} @endif @lang('superadmin::lang.products')

@if($package->invoice_count == 0) @lang('superadmin::lang.unlimited') @else {{$package->invoice_count}} @endif @lang('superadmin::lang.invoices')

@if($package->trial_days != 0)
{{$package->trial_days}} @lang('superadmin::lang.trial_days')

@endif
@php if($coupon_status['status'] == 'success') { $package->price = number_format($package_price_after_discount , 2, '.', ''); } @endphp
@if (request()->has('code'))
@if($coupon_status['status'] == 'success') @lang('superadmin::lang.package_price_after_discount') = {{ number_format($package_price_after_discount , 2, '.', ''); }} (@lang('superadmin::lang.you_save') {{ number_format($discount_amount , 2, '.', ''); }}) @else {{ $coupon_status['msg'] }} @endif
@endif {!! Form::open([ 'method' => 'get', 'id' => 'coupon_check', ]) !!}
{!! Form::label('coupon_code', __('superadmin::lang.coupon_code') . '*') !!} {!! Form::text('code', request()->get('code') ?? null, [ 'class' => 'form-control bd-rd-7', 'required', 'placeholder' => __('superadmin::lang.coupon_code'), ]) !!}
{!! Form::submit('Apply', ['class' => 'btn btn-success btn-sm btn-block mt-4']) !!}
{!! Form::close() !!}
    @foreach($gateways as $k => $v)
    @lang('superadmin::lang.pay_via', ['method' => $v])
    @php $view = 'superadmin::subscription.partials.pay_'.$k; @endphp @includeIf($view)
    @endforeach
@endsection