@extends('layouts.admin') @section('title', 'Buku') @section('content')

Katalog & terbitan

Buku

Tambah buku
@forelse ($books as $book)
@if ($book->cover_path) Sampul {{ $book->title }} @else Tanpa sampul @endif
{{ $book->title }}

{{ $book->author }}@if ($book->category) ยท {{ $book->category }}@endif

@if ($book->for_sale)Katalog@endif @if ($book->upcoming)Terbitan@endif @if ($book->is_active) Tampil @else Disembunyikan @endif

{{ $book->price !== null ? \App\Support\Site::rupiah($book->price) : 'Belum dijual' }}

@if ($book->is_active) Lihat @endif Ubah
@csrf @method('DELETE')
@empty

{{ $search !== '' ? 'Tidak ada buku yang cocok.' : 'Belum ada buku.' }}

Tambah buku
@endforelse {{ $books->links() }}
@endsection