2018-08-06 12:30:51 +00:00
|
|
|
@extends('layouts.app')
|
2015-07-19 06:49:24 +00:00
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2018-08-06 12:30:51 +00:00
|
|
|
<h1 class="title">Book</h1>
|
2015-07-19 06:49:24 +00:00
|
|
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
|
|
|
<a href="{{ route('settings.book.add') }}" class="btn btn-danger">
|
|
|
|
ADD NEW BOOK
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
<table class="table table-striped table-bordered">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Author</th>
|
|
|
|
<th>Year</th>
|
|
|
|
<th>Stock</th>
|
2018-08-06 12:30:51 +00:00
|
|
|
<th>Project</th>
|
2015-07-19 06:49:24 +00:00
|
|
|
<th>Options</th>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
@foreach($books as $book)
|
|
|
|
|
2018-08-06 12:30:51 +00:00
|
|
|
<tr>
|
2015-07-19 06:49:24 +00:00
|
|
|
<td>{{ $book->title }}</td>
|
|
|
|
<td>{{ $book->author }}</td>
|
|
|
|
<td>{{ $book->year }}</td>
|
|
|
|
<td>{{ $book->stock }}</td>
|
2018-08-06 12:30:51 +00:00
|
|
|
@if($book->hasProject())
|
|
|
|
<td>{{ $book->project->name }}</td>
|
|
|
|
@else
|
|
|
|
<td>--</td>
|
|
|
|
@endif
|
|
|
|
<td>
|
|
|
|
<a href="{{ route('settings.book.edit', $book->id) }}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
|
|
|
|
<a href="{{ route('settings.book.delete', $book->id) }}"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>
|
|
|
|
</td>
|
2015-07-19 06:49:24 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|