@extends('user.layouts.app') @php // Get product form mode from site config (default to 'inline' for backward compatibility) $productFormMode = $siteConfig['ui']['product_form_mode'] ?? 'inline'; $cardStyle = $siteConfig['ui']['card_style'] ?? 'default'; $containerClass = $siteConfig['layout']['container_style'] ?? 'container'; @endphp @section('css') {{-- Head Styles and CSS --}} @if ($cardStyle === 'modern') @else @endif @endsection @if (isset($game)) @section('title') {{ $game->name }} @endsection @endif @section('content')
@include('user.product.partials._page-header') {{-- Identity verification warning --}} @if (isset($game) && $game->requires_verified && !$isUserVerified) @endif
@include('user.product.partials._product-cards') @if ($productFormMode === 'inline') {{-- INLINE MODE: Form appears below product cards --}}
@if (isset($isGuest) && $isGuest)
اختر منتجاً لمعرفة السعر

سجل دخول للشراء

@else
يرجى اختيار منتج

اختر أحد المنتجات أعلاه للمتابعة مع عملية الشراء

@endif
{{-- Inline form content with submit button --}}
@include('user.product.partials._form-content', [ 'formId' => 'atachmentdata', 'formClass' => 'compact-form', 'showSubmitButton' => true, 'submitFunction' => 'sendNext', ])
@endif
@if ($productFormMode === 'modal') {{-- MODAL MODE: Form appears in a modal dialog --}} @include('user.product.partials._form-modal') @endif
@endsection @section('js') @include('user.product.partials._script') @endsection