@php $amount = request('amount', $amount ?? 0); $transactionId = request('invoice_number', $transactionId ?? 'HILNEX' . time() . rand(100, 999)); $currentLocale = app()->getLocale(); $otherLocale = ($currentLocale === 'en') ? 'bn' : 'en'; $otherLocaleLabel = $currentLocale === 'en' ? 'বাংলা' : 'English'; // Manually build the language switch URL to preserve all query parameters $langSwitchUrl = LaravelLocalization::getLocalizedURL($otherLocale, url()->current() . '?' . http_build_query(request()->query()), [], true); @endphp @extends('layouts.pay') @section('content') @push('styles') @push('scripts')
{{-- Merchant Info - Positioned to overlap --}}
{{ $brand->name ?? __('Default Gateway') }}
{{-- Payment Box --}}
@php $dashboardUrl = url()->previous(); // Default back URL if (Auth::check()) { $dashboardUrl = Auth::user()->role === 'admin' ? route('admin.dashboard') : route('user.dashboard'); } @endphp
{{-- Hidden bKash button that will be triggered programmatically --}}
{{-- Copyright Footer --}}
@endsection @push('scripts') @endpush