-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
131 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading">Dashboard</div> | ||
@section('title') | ||
Dashboard | {{ env('APP_NAME') }} | ||
@endsection | ||
|
||
<div class="panel-body"> | ||
@if (session('status')) | ||
<div class="alert alert-success"> | ||
{{ session('status') }} | ||
</div> | ||
@endif | ||
@section('content') | ||
|
||
You are logged in! | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-3 col-lg-3"> | ||
<div class="list-group"> | ||
<a href="{{ url('home') }}" class="list-group-item active"> | ||
Dashboard | ||
</a> | ||
<a href="{{ url('trackings') }}" class="list-group-item"> | ||
All Trackings <span class="badge">{{ DB::table('trackings')->count() }}</span> | ||
</a> | ||
<a href="{{ url('trackings/new') }}" class="list-group-item"> | ||
Add New Tracking | ||
</a> | ||
</div> | ||
</div> | ||
<div class="col-md-9 col-lg-9"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h4>Dashboard</h4> | ||
</div> | ||
<div class="panel-body"> | ||
Deli Deli Deli | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
@extends('layouts.app') | ||
|
||
@section('title') | ||
All Trackings | {{ env('APP_NAME') }} | ||
@endsection | ||
|
||
@section('content') | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-3 col-lg-3"> | ||
<div class="list-group"> | ||
<a href="{{ url('home') }}" class="list-group-item"> | ||
Dashboard | ||
</a> | ||
<a href="{{ url('trackings') }}" class="list-group-item active"> | ||
All Trackings <span class="badge">{{ DB::table('trackings')->count() }}</span> | ||
</a> | ||
<a href="{{ url('trackings/new') }}" class="list-group-item"> | ||
Add New Tracking | ||
</a> | ||
</div> | ||
</div> | ||
<div class="col-md-9 col-lg-9"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h4>Generated Trackings</h4> | ||
</div> | ||
<div class="panel-body"> | ||
@if (count($trackings) > 0) | ||
<div class="table-responsive"> | ||
<table class="table table-striped"> | ||
<thead> | ||
<th>#</th> | ||
<th>Tracking ID</th> | ||
<th>Origin</th> | ||
<th>Destination</th> | ||
</thead> | ||
<tbody> | ||
@foreach ($trackings as $tracking) | ||
<tr> | ||
<td>{{ $loop->iteration }}</td> | ||
<td>{{ $tracking->trackingID }}</td> | ||
<td>{{ $tracking->origin }}</td> | ||
<td>{{ $tracking->destination }}</td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> | ||
{{ $trackings->links() }} | ||
@else | ||
<h3>No Tracking Recorded, Yet.</h3> | ||
<a href="{{ url('trackings/new') }}" class="btn btn-default btn-md"> | ||
ADD NEW TRACKING RECORD | ||
</a> | ||
@endif | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@extends('layouts.app') | ||
|
||
@section('title') | ||
Add New Tracking | {{ env('APP_NAME') }} | ||
@endsection | ||
|
||
@section('content') | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-3 col-lg-3"> | ||
<div class="list-group"> | ||
<a href="{{ url('home') }}" class="list-group-item"> | ||
Dashboard | ||
</a> | ||
<a href="{{ url('trackings') }}" class="list-group-item active"> | ||
All Trackings <span class="badge">{{ DB::table('trackings')->count() }}</span> | ||
</a> | ||
<a href="{{ url('trackings/new') }}" class="list-group-item"> | ||
Add New Tracking | ||
</a> | ||
</div> | ||
</div> | ||
<div class="col-md-9 col-lg-9"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h4>Add New Tracking Record</h4> | ||
</div> | ||
<div class="panel-body"> | ||
{{-- --}} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
@endsection |