@use('App\Helpers\Helpers') @use('App\Enums\SymbolPositionEnum') @extends('frontend.layout.master') @section('title', __('frontend::static.bookings.payment')) @section('breadcrumb') @endsection @section('content') @php $paymentMethods = Helpers::getActivePaymentMethods() ?? []; $symbol = Helpers::getDefaultCurrencySymbol(); @endphp

{{__('frontend::static.bookings.select_payment_method')}}

{{ count($checkout['services']) }} {{__('frontend::static.bookings.service_in_cart_total_amount')}} @if (Helpers::getDefaultCurrency()->symbol_position === SymbolPositionEnum::LEFT) {{ $symbol }}{{ Helpers::covertDefaultExchangeRate($checkout['total']['total']) }} @else {{ Helpers::covertDefaultExchangeRate($checkout['total']['total']) }} {{ $symbol }} @endif
@csrf @method('POST')
@auth
{{-- feature --}}

{{__('frontend::static.bookings.wallet')}}

{{__('frontend::static.bookings.available_balance')}} @if (Helpers::getDefaultCurrency()->symbol_position === SymbolPositionEnum::LEFT) {{ $symbol }}{{ auth()?->user()?->wallet?->balance }} @else {{ auth()?->user()?->wallet?->balance }} {{ $symbol }} @endif

@endauth @if(count($paymentMethods)) @foreach($paymentMethods as $paymentMethod)
{{$paymentMethod['name']}}

{{$paymentMethod['name']}}

@endforeach @endif
@endsection @push('js') @endpush