Add attachments, more pages
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
18
resources/views/books/show.blade.php
Normal file
18
resources/views/books/show.blade.php
Normal file
@ -0,0 +1,18 @@
|
||||
@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
|
0
resources/views/books/table.blade.php
Normal file
0
resources/views/books/table.blade.php
Normal file
Reference in New Issue
Block a user