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

You have no books click here to create a new book

@else
My Books
Add New
Total : {{ count($allBooks) }}
@foreach ($table_headers as $heading) @endforeach @foreach ($allBooks as $book) {{-- front cover image --}} {{-- back cover image --}} {{-- --}} {{-- file --}} {{-- recent buyers --}} {{-- edit book --}} {{-- edit doc file --}} @endforeach
{!! $heading !!}
{{ $book->doc->front_cover ?? 'No Image' }} {{ 'n/a' }} {!! (Storage::disk('public')->exists($book->doc?->book_file) or $book->doc?->book_file) ? ' ' : '' !!} {{ $book->name }} {{ $book->ISBN }}
  • Avatar
  • Avatar
  • Avatar
{{-- view all --}}
{{ number_format($book->price, 2) }}
{{-- --}}
@if ($book->doc?->id) @else Add File @endif
@endif @endsection