bookinventory/resources/views/books/show.blade.php

33 lines
739 B
PHP
Raw Permalink Normal View History

2020-12-27 00:34:07 +00:00
@extends('layouts.main')
@section('content')
2020-12-27 09:43:58 +00:00
<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>
2020-12-27 00:34:07 +00:00
<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>
2020-12-27 00:34:07 +00:00
<p>
{{ $book->location->name }}
</p>
@if (!empty($book->description))
<h5>Description</h5>
<p>
{{ $book->description }}
</p>
@endif
2020-12-27 09:43:58 +00:00
2020-12-27 00:34:07 +00:00
@endsection