initial commit
This commit is contained in:
commit
28301e4312
219 changed files with 23035 additions and 0 deletions
35
resources/views/lms/settings/book/_form.blade.php
Executable file
35
resources/views/lms/settings/book/_form.blade.php
Executable 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')
|
28
resources/views/lms/settings/book/add.blade.php
Executable file
28
resources/views/lms/settings/book/add.blade.php
Executable 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
|
55
resources/views/lms/settings/book/book.blade.php
Executable file
55
resources/views/lms/settings/book/book.blade.php
Executable 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>
|
||||
<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
|
28
resources/views/lms/settings/book/edit.blade.php
Executable file
28
resources/views/lms/settings/book/edit.blade.php
Executable 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
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue