@php $c = $qrCode->content(); $title = $c['book_title'] ?? 'Book'; $author = $c['author'] ?? ''; $desc = $c['description'] ?? ''; $price = number_format((float) ($c['price_ghs'] ?? 0), 2); $fileType = strtoupper($c['file_type'] ?? 'PDF'); $hasCover = !empty($c['cover_path']); $orderUrl = $qrCode->publicPath('book/order'); $csrfToken = csrf_token(); @endphp {{ $title }} @include('partials.favicon')
{{-- Left column: cover panel (desktop only) --}} {{-- Right column: main content --}}
{{-- Mobile cover header --}}
@if($hasCover) {{ $title }} cover @else
@endif

{{ $title }}

@if($author)

by {{ $author }}

@endif
{{-- Main content --}}
@if(session('error') || $errors->any())
{{ session('error') ?: $errors->first('error') ?: $errors->first() }}
@endif {{-- File type badge --}}
{{ $fileType }}
{{-- Desktop title --}}

{{ $title }}

@if($author) @endif
@if($desc)

{{ $desc }}

@endif {{-- Price --}}
GHS {{ $price }}

Pay once. Download instantly.

{{-- Buy button --}}
@include('partials.paystack-sheet')
{{-- ===== SHEET 1: Customer details ===== --}}
{{-- Drag handle --}}
{{-- Header --}}

Complete purchase

{{ $title }}

{{-- Order summary --}}

{{ $title }}

{{ $fileType }}{{ $author ? ' · by ' . $author : '' }}

GHS

{{ $price }}

{{-- Contact fields --}}

Your details

{{-- Error --}}
{{-- Pay button --}}

Secured by Paystack. Powered by Ladill Pay

{{-- end x-data --}}