initial commit

This commit is contained in:
Arno Kaimbacher 2015-07-19 13:49:24 +07:00
commit 28301e4312
219 changed files with 23035 additions and 0 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, ['class' => 'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('stock', 'Stock..') !!}
{!! Form::text('stock', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('category_id', 'Category..') !!}
{!! Form::select('category_id', $categories, null, ['id' => 'category_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('app')
@section('content')
<h1 class="judul">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('lms/settings/book/_form', ['submitButtonText' => 'Add Book'])
{!! Form::close() !!}
</div>
@stop

View file

@ -0,0 +1,55 @@
@extends('app')
@section('content')
<h1 class="judul">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>Category</th>
<th>Shelf</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>
<td>{{ $book->category->category }}</td>
<td>{{ $book->shelf->shelf }}</td>
<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('app')
@section('content')
<h1 class="judul">Edit Your Fucking Book</h1>
<div class="col-md-4">
<a href="" 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('lms/settings/book/_form', ['submitButtonText' => 'Edit Book'])
{!! Form::close() !!}
</div>
@stop