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

View file

@ -0,0 +1,10 @@
<div class="form-group">
{!! Form::label('category', $categoryLabel) !!}
{!! Form::text('category', null, ['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 Fucking Category</h1>
<div class="col-md-4">
<a href="{{ route('settings.category') }}" class="btn btn-danger">
<span class="glyphicon glyphicon-chevron-left" ></span> BACK
</a>
</div>
<div class="col-md-4" >
{!! Form::open(['route' => 'settings.category.post']) !!}
@include('lms/settings/category/_form', ['submitButtonText' => 'Add Category', 'categoryLabel' => 'Add new Category.'])
{!! Form::close() !!}
</div>
@stop

View file

@ -0,0 +1,45 @@
@extends('app')
@section('content')
<h1 class="judul">Category</h1>
<div class="col-md-8">
<a href="{{ route('settings.category.add') }}" class="btn btn-danger">
ADD NEW MOTHERFUCKING CATEGORY
</a>
<br><br>
<table class="table table-striped table-bordered">
<thead>
<th>Category</th>
<th>Options</th>
</thead>
<tbody>
@foreach($categories as $category)
<tr>
<td>{{ $category->category }}</td>
<td><a href="{{ route('settings.category.edit', $category->id) }}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a> &nbsp;
<a href="{{ route('settings.category.delete', $category->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 Category</h1>
<div class="col-md-4">
<a href="{{ route('settings.category') }}" class="btn btn-danger">
<span class="glyphicon glyphicon-chevron-left" ></span> BACK
</a>
</div>
<div class="col-md-4" >
{!! Form::model($category, ['method' => 'PATCH', 'route' => ['settings.category.update', $category->id]]) !!}
@include('lms/settings/category/_form', ['submitButtonText' => 'Edit Category', 'categoryLabel' => 'Edit Category.'])
{!! Form::close() !!}
</div>
@stop

View file

@ -0,0 +1,15 @@
<div class="form-group">
{!! Form::label('days', $daysLabel) !!}
{!! Form::text('days', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('fines', $finesLabel) !!}
{!! Form::text('fines', null, ['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">Edit Your Fucking Fines</h1>
<div class="col-md-4">
<a href="{{ route('settings.category') }}" class="btn btn-danger">
<span class="glyphicon glyphicon-chevron-left" ></span> BACK
</a>
</div>
<div class="col-md-4" >
{!! Form::model($fine, ['method' => 'PATCH', 'route' => ['settings.fines.update', $fine->id]]) !!}
@include('lms/settings/fine/_form', ['submitButtonText' => 'Edit Fines', 'daysLabel' => 'Days..', 'finesLabel' => 'Fines..'])
{!! Form::close() !!}
</div>
@stop

View file

@ -0,0 +1,44 @@
@extends('app')
@section('content')
<h1 class="judul">FINES</h1>
<div class="col-md-8">
<br><br>
<table class="table table-striped table-bordered">
<thead>
<th>Days</th>
<th>Fines</th>
<th>Options</th>
</thead>
<tbody>
@foreach($fines as $fine)
<tr>
<td>{{ $fine->days }}</td>
<td>{{ $fine->fines }}</td>
<td><a href="{{ route('settings.fines.edit', $fine->id) }}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
@stop

View file

@ -0,0 +1,10 @@
<div class="form-group">
{!! Form::label('days', $daysLabel) !!}
{!! Form::text('days', null, ['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">Edit Your Fucking Fines</h1>
<div class="col-md-4">
<a href="{{ route('settings.category') }}" class="btn btn-danger">
<span class="glyphicon glyphicon-chevron-left" ></span> BACK
</a>
</div>
<div class="col-md-4" >
{!! Form::model($periode, ['method' => 'PATCH', 'route' => ['settings.periode.update', $periode->id]]) !!}
@include('lms/settings/periode/_form', ['submitButtonText' => 'Edit Periode', 'daysLabel' => 'Days..'])
{!! Form::close() !!}
</div>
@stop

View file

@ -0,0 +1,42 @@
@extends('app')
@section('content')
<h1 class="judul">PERIODE</h1>
<div class="col-md-8">
<br><br>
<table class="table table-striped table-bordered">
<thead>
<th>Days</th>
<th>Options</th>
</thead>
<tbody>
@foreach($periodes as $periode)
<tr>
<td>{{ $periode->days }}</td>
<td><a href="{{ route('settings.periode.edit', $periode->id) }}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
@stop

View file

@ -0,0 +1,10 @@
<div class="form-group">
{!! Form::label('shelf', $shelfLabel) !!}
{!! Form::text('shelf', null, ['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 Fucking Category</h1>
<div class="col-md-4">
<a href="{{ route('settings.shelf') }}" class="btn btn-danger">
<span class="glyphicon glyphicon-chevron-left" ></span> BACK
</a>
</div>
<div class="col-md-4" >
{!! Form::open(['route' => 'settings.shelf.post']) !!}
@include('lms/settings/shelf/_form', ['submitButtonText' => 'Add Shelf', 'shelfLabel' => 'Add new Shelf.'])
{!! Form::close() !!}
</div>
@stop

View file

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

View file

@ -0,0 +1,47 @@
@extends('app')
@section('content')
<h1 class="judul">Shelf</h1>
<div class="col-md-8">
<a href="{{ route('settings.shelf.add') }}" class="btn btn-danger">
ADD NEW MOTHERFUCKING SHELF
</a>
<br><br>
<table class="table table-striped table-bordered">
<thead>
<th>Shelf</th>
<th>Options</th>
</thead>
<tbody>
@foreach($shelves as $shelf)
<tr>
<td>{{ $shelf->shelf }}</td>
<td><a href="{{ route('settings.shelf.edit', $shelf->id) }}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a> &nbsp;
<a href="{{ route('settings.shelf.delete', $shelf->id) }}"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
@stop

View file

@ -0,0 +1,10 @@
<div class="form-group">
{!! Form::label('name', 'Name..') !!}
{!! Form::text('name', null, ['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 Fucking Student</h1>
<div class="col-md-4">
<a href="{{ route('settings.student') }}" class="btn btn-danger">
<span class="glyphicon glyphicon-chevron-left" ></span> BACK
</a>
</div>
<div class="col-md-4" >
{!! Form::open(['route' => 'settings.student.post']) !!}
@include('lms/settings/student/_form', ['submitButtonText' => 'Add Student'])
{!! Form::close() !!}
</div>
@stop

View file

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

View file

@ -0,0 +1,64 @@
@extends('app')
@section('content')
<h1 class="judul">Student</h1>
<div class="col-md-8">
<a href="{{ route('settings.student.add') }}" class="btn btn-danger">
ADD NEW MOTHERFUCKING STUDENT
</a>
<br><br>
<table class="table table-striped table-bordered">
<thead>
<th>Name</th>
<th>Registered At</th>
<th>Borrow</th>
<th>Status</th>
<th colspan="2"><center>Options</center></th>
</thead>
<tbody>
@foreach($students as $student)
<tr>
<td>{{ $student->name }}</td>
<td>{{ date('d-M-y', $student->registered_at) }}</td>
<td>{{ $student->borrow }}</td>
<td>
@if($student->status == 1)
Active
@else
-
@endif
</td>
<td>
@if($student->status == 1)
<a href="{{ route('settings.student.down', $student->id) }}" class="btn btn-danger">Matikan Masa Aktif</a>
@else
<a href="{{ route('settings.student.up', $student->id) }}" class="btn btn-primary">Perpanjang Masa Aktif</a>
@endif
</td>
<td><a href="{{ route('settings.student.edit', $student->id) }}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a> &nbsp;
<a href="{{ route('settings.student.delete', $student->id) }}"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
@stop