@extends('layouts.public') @section('title', $book->title.' — Addariyah Press') @section('description', $book->author.' · '.$book->title) @section('content')
@if ($book->cover_path) Sampul {{ $book->title }} @else {{ $book->title }} @endif

{{ $book->category ?: 'Buku' }}

@if ($book->upcoming) Segera terbit @endif @if ($book->for_sale) E-book @endif

{{ $book->title }}

{{ $book->author }} · {{ $book->publisher }}

@if ($book->for_sale && $book->price !== null)

@rupiah($book->price)

File dikirim setelah pembayaran dikonfirmasi lewat WhatsApp.

@csrf
@else

{{ $book->expected_label ?: 'Segera terbit' }}

Buku ini belum dijual di katalog. Informasi terbit menyusul.

@endif
{!! \App\Support\Site::paragraphs($book->description) !!}
@php $specs = array_filter([ 'Penulis' => $book->author, 'Penerbit' => $book->publisher, 'Kategori' => $book->category, 'Halaman' => $book->pages ? $book->pages.' halaman' : null, 'ISBN' => $book->isbn, 'QRCBN' => $book->qrcbn, 'Editor' => $book->editor, 'Layout' => $book->book_layout, 'Cover' => $book->cover_designer, 'Perkiraan terbit' => $book->expected_label, ], fn ($value) => filled($value)); @endphp @if ($specs)

Detail buku

@foreach ($specs as $label => $value)
{{ $label }}
{{ $value }}
@endforeach
@endif
@if ($related->isNotEmpty()) @endif
@endsection