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

48
resources/views/app.blade.php Executable file
View file

@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Library Management System</title>
<link rel="stylesheet" type="text/css" href="{{ asset('css/bootstrap.min.css') }}">
<link href="{{ asset('/css/app.css') }}" rel="stylesheet">
<!-- Fonts -->
<link href='http://fonts.googleapis.com/css?family=Marvel' rel='stylesheet' type='text/css'>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
@include('partials.nav')
<div class="container">
@include('partials.flash')
@yield('content')
</div>
<!-- Scripts -->
<script type="text/javascript" src="{{ asset('js/jquery-2.1.1.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('js/bootstrap.min.js') }}"></script>
<script type="text/javascript">
$('div.alert').not('alert-important').delay(3000).slideUp(300);
</script>
@yield('footer')
</body>
</html>

View file

@ -0,0 +1,64 @@
@extends('app')
@section('content')
<div class="container-fluid">
<h1 class="judul">LMS by Pramesti Hatta K.</h1>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Login</div>
<div class="panel-body">
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<form class="form-horizontal" role="form" method="POST" action="{{ url('/auth/login') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">
<label class="col-md-4 control-label">E-Mail Address</label>
<div class="col-md-6">
<input type="email" class="form-control" name="email" value="{{ old('email') }}">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Password</label>
<div class="col-md-6">
<input type="password" class="form-control" name="password">
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<div class="checkbox">
<label>
<input type="checkbox" name="remember"> Remember Me
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">Login</button>
<a class="btn btn-link" href="{{ url('/password/email') }}">Forgot Your Password?</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View file

@ -0,0 +1,50 @@
@extends('app')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Reset Password</div>
<div class="panel-body">
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<form class="form-horizontal" role="form" method="POST" action="{{ url('/password/email') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">
<label class="col-md-4 control-label">E-Mail Address</label>
<div class="col-md-6">
<input type="email" class="form-control" name="email" value="{{ old('email') }}">
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Send Password Reset Link
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View file

@ -0,0 +1,65 @@
@extends('app')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<form class="form-horizontal" role="form" method="POST" action="{{ url('/auth/register') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">
<label class="col-md-4 control-label">Name</label>
<div class="col-md-6">
<input type="text" class="form-control" name="name" value="{{ old('name') }}">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">E-Mail Address</label>
<div class="col-md-6">
<input type="email" class="form-control" name="email" value="{{ old('email') }}">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Password</label>
<div class="col-md-6">
<input type="password" class="form-control" name="password">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Confirm Password</label>
<div class="col-md-6">
<input type="password" class="form-control" name="password_confirmation">
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Register
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View file

@ -0,0 +1,59 @@
@extends('app')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Reset Password</div>
<div class="panel-body">
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<form class="form-horizontal" role="form" method="POST" action="{{ url('/password/reset') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="hidden" name="token" value="{{ $token }}">
<div class="form-group">
<label class="col-md-4 control-label">E-Mail Address</label>
<div class="col-md-6">
<input type="email" class="form-control" name="email" value="{{ old('email') }}">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Password</label>
<div class="col-md-6">
<input type="password" class="form-control" name="password">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Confirm Password</label>
<div class="col-md-6">
<input type="password" class="form-control" name="password_confirmation">
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Reset Password
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View file

@ -0,0 +1 @@
Click here to reset your password: {{ url('password/reset/'.$token) }}

View file

@ -0,0 +1,41 @@
<html>
<head>
<link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
<style>
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
color: #B0BEC5;
display: table;
font-weight: 100;
font-family: 'Lato';
}
.container {
text-align: center;
display: table-cell;
vertical-align: middle;
}
.content {
text-align: center;
display: inline-block;
}
.title {
font-size: 72px;
margin-bottom: 40px;
}
</style>
</head>
<body>
<div class="container">
<div class="content">
<div class="title">Be right back.</div>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,16 @@
@if($errors->any())
<ul class="alert alert-danger">
@foreach($errors->all() as $error)
<li style="margin-left:5px;">{{ $error }}</li>
@endforeach
</ul>
@endif

View file

@ -0,0 +1,54 @@
@extends('app')
@section('content')
<h1 class="judul">Books</h1>
<div class="col-md-8">
<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>
</thead>
<tbody>
@foreach($books as $book)
<tr>
<td>{{ $book->title }}</td>
<td>{{ $book->author }}</td>
<td>{{ $book->year }}</td>
<td>
@if($book->stock > 0)
Available
@elseif($book->stock == 0)
-
@endif
</td>
<td>{{ $book->category->category }}</td>
<td>{{ $book->shelf->shelf }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@stop

View file

@ -0,0 +1,7 @@
@extends('app')
@section('content')
<h1 class="judul">MOTHERFUCKING LMS</h1>
@stop

View file

@ -0,0 +1,42 @@
@extends('app')
@section('content')
<h1 class="judul">Histori</h1>
<div class="col-md-8">
<table class="table table-striped table-bordered">
<thead>
<th>Student</th>
<th>Book</th>
<th>Borrowed At</th>
<th>Returned At</th>
<th>Fines</th>
</thead>
<tbody>
@foreach($transactions as $transaction)
<tr>
<td>{{ $transaction->student->name }}</td>
<td>{{ $transaction->book->title }}</td>
<td>{{ date('d-M-y', $transaction->borrowed_at) }}</td>
<td>{{ date('d-M-y', $transaction->returned_at) }}</td>
<td>{{ $transaction->fines }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@stop

View file

@ -0,0 +1,43 @@
@extends('app')
@section('content')
<h1 class="judul">Laporan</h1>
<div class="col-md-12">
<table class="table table-striped table-bordered">
<thead>
<th>Student</th>
<th>Book</th>
<th>Borrowed At</th>
<th>Fines</th>
<th colspan="2"><center>What You Gonna Do</center></th>
</thead>
<tbody>
@foreach($transactions as $transaction)
<tr>
<td>{{ $transaction->student->name }}</td>
<td>{{ $transaction->book->title }}</td>
<td>{{ date('d-M-y', $transaction->borrowed_at) }}</td>
<td>Rp. {{ $transaction->fines }}</td>
<td><a href="{{ route('peminjaman.pengembalian', $transaction->id) }}"><span class="glyphicon glyphicon-resize-small" aria-hidden="true"></span>&nbsp; Pengembalian</a></td>
<td><a href="{{ route('peminjaman.perpanjang', $transaction->id) }}"><span class="glyphicon glyphicon-resize-full" aria-hidden="true"></span>&nbsp; Perpanjang Masa Peminjaman</a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
@stop

View file

@ -0,0 +1,73 @@
@extends('app')
@section('content')
<h1 class="judul">Peminjaman</h1>
<div class="col-md-8">
{!! Form::open(['route' => 'peminjaman.post']) !!}
<div class="form-group">
{!! Form::label('student_id', 'Student..') !!}
{!! Form::select('student_id', $students, null, ['id' => 'student_id', 'class' => 'form-control']) !!}
</div>
<div class="form-group">
<!--{!! Form::label('category', 'Category..') !!}
{!! Form::select('category', $categories, null, ['id' => 'category', 'class' => 'form-control']) !!} -->
<select id="category" name="category" class="form-control" >
@foreach($categories as $category)
<option value="{{ $category->id }}" >{{ $category->category }}</option>
@endforeach
</select>
</div>
<div class="form-group">
<!--{!! Form::label('book_id', 'Book..') !!}
{!! Form::select('book_id', [], null, ['id' => 'book_id', 'class' => 'form-control']) !!} -->
<select id="book_id" name="book_id" class="form-control">
<option>-- Choice The Book --</option>
</select>
</div>
<div class="form-group">
{!! Form::submit('Pinjam', ['class' => 'btn btn-primary form-control']) !!}
</div>
{!! Form::close() !!}
</div>
@stop
@section('footer')
<script type="text/javascript">
$('#category').on('change', function(e){
console.log(e);
var category_id = e.target.value;
//ajax
$.get('/api/dropdown/peminjaman/' + category_id, function(data){
//if success data
$('#book_id').empty();
$.each(data, function(index, booksObj){
$('#book_id').append('<option value="' +booksObj.id+ '">' +booksObj.title+ '</option>');
});
});
});
</script>
@stop

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

View file

@ -0,0 +1,9 @@
@if(Session::has('flash_message'))
<div class="alert alert-success">
{{ session('flash_message') }}
</div>
@endif

View file

@ -0,0 +1,61 @@
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand marvel" href="#">LIBRARY MANAGEMENT SYSTEM</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
@if(Auth::user())
<ul class="nav navbar-nav">
<li><a class="marvel" href="{{ url('/') }}">HOME</a></li>
<li><a class="marvel" href="{{ url('books') }}">BOOKS</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle marvel" data-toggle="dropdown" role="button" aria-expanded="false"> PEMINJAMAN <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="{{ route('peminjaman.peminjaman') }}" class="marvel">PEMINJAMAN</a></li>
<li><a href="{{ route('peminjaman.laporan') }}" class="marvel">LAPORAN PEMINJAMAN</a></li>
<li><a href="{{ route('peminjaman.histori') }}" class="marvel">HISTORI</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle marvel" data-toggle="dropdown" role="button" aria-expanded="false"> SETTINGS <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="{{ route('settings.book') }}" class="marvel">BOOK</a></li>
<li><a href="{{ route('settings.category') }}" class="marvel">CATEGORY</a></li>
<li><a href="{{ route('settings.shelf') }}" class="marvel">SHELF</a></li>
<li><a href="{{ route('settings.fines') }}" class="marvel">FINES</a></li>
<li><a href="{{ route('settings.student') }}" class="marvel">STUDENT</a></li>
<li><a href="{{ route('settings.periode') }}" class="marvel">PERIODE</a></li>
</ul>
</li>
</ul>
@endif
<ul class="nav navbar-nav navbar-right">
@if (Auth::guest())
<li><a href="{{ url('/auth/login') }}">LOGIN</a></li>
<li><a href="{{ url('/auth/register') }}">REGISTER</a></li>
@else
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{ Auth::user()->name }} <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="{{ url('/auth/logout') }}">LOG OUT</a></li>
</ul>
</li>
@endif
</ul>
</div>
</div>
</nav>

0
resources/views/vendor/.gitkeep vendored Executable file
View file