bookinventory/resources/views/books/show.blade.php
Tyler e9ea25ad38
All checks were successful
continuous-integration/drone/push Build is passing
Build new versioned files
2020-12-27 04:43:58 -05:00

33 lines
739 B
PHP

@extends('layouts.main')
@section('content')
<h3>
{{ $book->name }}
<div class="action-container float-right" data-url="{{ route('books.show', $book->id) }}">
<button class="remove-item btn btn-danger">
Remove
</button>
</div>
</h3>
<h5>By: {{ $book->authors->pluck('name')->join(', ') }}</h5>
<br />
@if ($thumbnail = $book->attachment('thumbnail'))
<h5>Image</h5>
<p>
<img src="{{ $thumbnail->url }}" />
</p>
@endif
<h5>Location</h5>
<p>
{{ $book->location->name }}
</p>
@if (!empty($book->description))
<h5>Description</h5>
<p>
{{ $book->description }}
</p>
@endif
@endsection