{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: receipt.blade.php ------------------------------------------------------ Use: The outcome of a gateway payment, with the ten- second automatic return to the shop. The whole background takes the colour of the result. ===================================================== --}} @extends('layouts.gateway') @section('title', __('front.pay.receipt_title')) @section('outcome', $order->isPaid() ? 'success' : 'failed') @section('content')
@if ($order->isPaid())

{{ __('front.pay.success_title') }}

{{ __('front.pay.success_body') }}

@else

{{ __('front.pay.failed_title') }}

{{ $order->isTimedOut() ? __('front.pay.failed_body_expired') : __('front.pay.failed_body_canceled') }}

@endif
{{ __('front.pay.receipt_amount') }} @toman($order->amount) {{ __('front.pay.toman') }}
{{ __('front.pay.receipt_shop') }} {{ $order->shop->name }}
{{ __('front.pay.receipt_order') }} {{ $order->code }}
@if ($order->reference_id)
{{ __('front.pay.receipt_reference') }} @fa($order->reference_id)
@endif
{{ __('front.pay.receipt_date') }} @jalaliDateTime($order->paid_at ?? $order->updated_at)
{{-- Payment breakdown: an order can be settled from credit + wallet + online in any mix; each transaction is listed. --}} @if ($transactions->isNotEmpty()) @php $sourceMeta = [ \App\Models\Transaction::TYPE_INSTALLMENT => ['label' => __('front.pay.from_credit'), 'color' => '#563bb1'], \App\Models\Transaction::TYPE_CASH => ['label' => __('front.pay.from_wallet'), 'color' => '#16a34a'], \App\Models\Transaction::TYPE_ONLINE => ['label' => __('front.pay.receipt_source_online'), 'color' => '#2563eb'], ]; @endphp
{{ __('front.pay.receipt_transactions') }}
@foreach ($transactions as $tx) @php $meta = $sourceMeta[$tx->type] ?? ['label' => __("front.transactions.types.{$tx->type}"), 'color' => '#7b7890']; @endphp
{{ $meta['label'] }} @toman($tx->amount) {{ __('front.pay.toman') }}
@endforeach
@endif
{{ __('front.pay.auto_return') }} {{ __('front.pay.seconds') }}
{{ __('front.pay.back_to_shop') }}
@endsection