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

18 lines
386 B
PHP

@extends('layouts.main')
@section('content')
<h3>{{ $book->name }}</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>
@endsection