@extends('snit.layouts.app') @section('content') @if (count($allBooks) < 1)

Oops! You have no books

⇒ Add Your First Book

@else

My Books

All Books: {{ count($allBooks) }}
@foreach ($table_headers as $heading) @endforeach @foreach ($allBooks as $book) {{-- s/n --}} {{-- file --}} {{-- front cover image --}} {{-- recent buyers --}} {{-- --}} {{-- pricing --}} {{-- edit book --}} {{-- edit document file --}} {{-- --}} @endforeach
{!! $heading !!}
{{ $loop->iteration }} {!! (Storage::disk('public')->exists($book->doc?->book_file) or $book->doc?->book_file) ? ' ' : '' !!} {{ $book->doc->front_cover ?? 'No Image' }} {{ $book->inventory ?? 0 }} {{ $book->name}} {{ $book->ISBN }} @include('snit.auth.dashboard.books.partials.recentBuyers') ₦{{ number_format($book->price, 2) }} | ₦{{ number_format($book->eBookPrice(), 2) }} @if ($book->doc?->id) @else Add File @endif
@endif @endsection