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,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