my changes

This commit is contained in:
Arno Kaimbacher 2018-08-06 14:30:51 +02:00
parent 28301e4312
commit 8dc1f1b048
263 changed files with 36882 additions and 4453 deletions

View file

@ -0,0 +1,35 @@
<div class="form-group">
{!! Form::label('title', 'Title..') !!}
{!! Form::text('title', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('author', 'Author..') !!}
{!! Form::text('author', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('year', 'Year..') !!}
{!! Form::select('year', $years, null, ['id' => 'year', 'class' => 'form-control', 'placeholder' => 'None']) !!}
</div>
<div class="form-group">
{!! Form::label('stock', 'Stock..') !!}
{!! Form::text('stock', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('project_id', 'Project..') !!}
{!! Form::select('project_id', $categories, null, ['id' => 'project_id', 'class' => 'form-control']) !!}
</div>
{{-- <div class="form-group">
{!! Form::label('shelf_id', 'Shelf..') !!}
{!! Form::select('shelf_id', $shelves, null, ['id' => 'shelf_id', 'class' => 'form-control']) !!}
</div> --}}
<div class="form-group">
{!! Form::submit($submitButtonText, ['class' => 'btn btn-primary form-control']) !!}
</div>
@include('errors._errors')

View file

@ -0,0 +1,28 @@
@extends('layouts.app')
@section('content')
<h1 class="title">Add Your Book</h1>
<div class="col-md-4">
<a href="{{ route('settings.book') }}" class="btn btn-danger">
<span class="glyphicon glyphicon-chevron-left" ></span> BACK
</a>
</div>
<div class="col-md-4" >
{!! Form::open(['route' => 'settings.book.post']) !!}
@include('rdr/settings/book/_form', ['submitButtonText' => 'Add Book'])
{!! Form::close() !!}
</div>
@stop

View file

@ -0,0 +1,57 @@
@extends('layouts.app')
@section('content')
<h1 class="title">Book</h1>
<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>
<th>Project</th>
<th>Options</th>
</thead>
<tbody>
@foreach($books as $book)
<tr>
<td>{{ $book->title }}</td>
<td>{{ $book->author }}</td>
<td>{{ $book->year }}</td>
<td>{{ $book->stock }}</td>
@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> &nbsp;
<a href="{{ route('settings.book.delete', $book->id) }}"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@stop

View file

@ -0,0 +1,28 @@
@extends('layouts.app')
@section('content')
<h1 class="title">Edit Your Book</h1>
<div class="col-md-4">
<a href="{{ route('settings.book') }}" class="btn btn-danger">
<span class="glyphicon glyphicon-chevron-left" ></span> BACK
</a>
</div>
<div class="col-md-4" >
{!! Form::model($book, ['method' => 'PATCH', 'route' => ['settings.book.update', $book->id]]) !!}
@include('rdr/settings/book/_form', ['submitButtonText' => 'Edit Book', 'bookLabel' => 'Edit Book.'])
{!! Form::close() !!}
</div>
@stop