@extends('layouts/contentLayoutMaster') @section('title', __('locale.labels.top_up')) @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

{{__('locale.customer.add_unit_to_your_account')}}

@csrf
{{ str_replace('{PRICE}', '', Auth::user()->customer->subscription->plan->currency->format) }} @error('add_unit')

{{ $message }}

@enderror

{{__('locale.labels.validity')}}: @if(Auth::user()->customer->subscription->plan->frequency_amount == 1) 1 {{ Auth::user()->customer->subscription->plan->displayFrequencyTime() }} @else {{ Auth::user()->customer->subscription->plan->displayFrequencyTime() }} @endif

@php $plan = Auth::user()->customer->subscription->plan; @endphp @if($plan->getCreditPrices()->count() > 0) @foreach ($plan->getCreditPrices()->get() as $key => $item) @endforeach @endif
{{ __('locale.plans.recharge_volume') }} {{ __('locale.labels.per_unit_price') }} {{ __('locale.plans.number_of_units') }}
{{ str_replace('{PRICE}', '', $plan->currency->format) }} {{ $item->unit_from }} {{ str_replace('{PRICE}', '', $plan->currency->format) }} {{ $item->unit_to }} {{ str_replace('{PRICE}', '', $plan->currency->format) }} {{ $item->per_credit_cost }} {{ $item->calculateUnits() }}
@endsection @section('page-script') @endsection