{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: pay.blade.php ------------------------------------------------------ Use: The public, shop-branded landing that stands in for a merchant's checkout. Top: logo, name, support phone. Middle: an amount to enter (open) or a fixed amount from a payment link. Bottom: the shop's social links. Submits to open a real gateway order and forward to the payment page -- it is never itself a payment page. ===================================================== --}} @extends('layouts.gateway') @section('title', __('front.shop_pay.title', ['shop' => $shop->name])) @php use App\Support\Format; $socials = $shop->socialLinks(); $socialIcons = [ 'instagram' => '', 'telegram' => '', 'whatsapp' => '', 'bale' => '', ]; // Fixed-amount links may be disabled or used up. $unavailable = $link !== null && ! $link->isUsable(); $amount = $link?->amount; @endphp @section('content') {{-- Width matches the layout's brand bar (logo + theme toggle) so they line up. --}}
{{-- ===== Header: logo + name + support ===== --}}
@if ($shop->logo_path) {{ $shop->name }} @else @endif

{{ $shop->name }}

@if ($shop->support_phone) {{ Format::persianDigits($shop->support_phone) }} @endif
@if ($unavailable) {{-- ===== Unavailable link ===== --}}

{{ __('front.shop_pay.unavailable_title') }}

{{ __('front.shop_pay.unavailable_body') }}

@else
@csrf @if ($link !== null) {{-- ===== Fixed amount ===== --}} @if ($link->title)
{{ $link->title }}
@endif
{{ __('front.shop_pay.amount_label') }}
{{ Format::persianDigits(number_format($amount)) }} {{ __('front.shop.toman') }}
@else {{-- ===== Open amount ===== --}}
{{ __('front.shop.toman') }}
@error('amount')

{{ $message }}

@else

{{ __('front.shop_pay.min_hint') }}

@enderror
@endif {{-- Optional buyer note (shown to the merchant on the order). --}}
@error('description')

{{ $message }}

@enderror

{{ __('front.shop_pay.secure_note') }}

@endif {{-- ===== Social links ===== --}} @if ($socials !== [])
@foreach ($socials as $platform => $url) {!! $socialIcons[$platform] ?? '' !!} @endforeach
@endif

{{ __('front.shop_pay.powered_by') }} {{ __('front.app.name') }}

@endsection