@extends('frontend.layouts.master') @section('title', ($success ? 'Payment confirmed' : 'Payment not completed') . ' - ' . (settings('name') ?: 'Travelio')) @section('page', 'payment-result') @section('content') {{-- The mobile app opens the checkout in a web view and watches for this URL. It reads data-payment-status / data-payment-reference instead of scraping the copy, so wording can change without breaking the app. --}}

{{ $success ? 'Payment confirmed' : 'Payment not completed' }}

{{ $message }}

@if($reference)

Reference: {{ $reference }}

@endif @if($success && $amount)

{{ currency_symbol() }}{{ number_format((float) $amount, 2) }}

@endif
@if(!empty($from_app)) Return to the app Back to site @else My invoices Back to site @endif
@if(!empty($from_app)) {{-- This checkout was started from the mobile app: try to hand the payer straight back via the app's travelio:// scheme. The button above stays as the fallback for browsers that block scripted scheme launches. --}} @endif @endsection