forked from johndavedecano/laragym
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
d819563
commit 5c891d2
Showing
72 changed files
with
15,939 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
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,2 @@ | ||
* | ||
!.gitignore |
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,2 @@ | ||
* | ||
!.gitignore |
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,2 @@ | ||
* | ||
!.gitignore |
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,17 @@ | ||
<?php | ||
|
||
class ExampleTest extends TestCase { | ||
|
||
/** | ||
* A basic functional test example. | ||
* | ||
* @return void | ||
*/ | ||
public function testBasicExample() | ||
{ | ||
$crawler = $this->client->request('GET', '/'); | ||
|
||
$this->assertTrue($this->client->getResponse()->isOk()); | ||
} | ||
|
||
} |
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,19 @@ | ||
<?php | ||
|
||
class TestCase extends Illuminate\Foundation\Testing\TestCase { | ||
|
||
/** | ||
* Creates the application. | ||
* | ||
* @return Symfony\Component\HttpKernel\HttpKernelInterface | ||
*/ | ||
public function createApplication() | ||
{ | ||
$unitTesting = true; | ||
|
||
$testEnvironment = 'testing'; | ||
|
||
return require __DIR__.'/../../bootstrap/start.php'; | ||
} | ||
|
||
} |
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,54 @@ | ||
@extends('master') | ||
@section('content') | ||
<div style="clear: both;"></div> | ||
<div class="row-fluid"> | ||
<div class="col-lg-12"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">All Activities</h3> | ||
</div> | ||
<div class="panel-body" id="latest-activities"> | ||
<table class="table table-bordered table-hover"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>Name</th> | ||
<th>Logged In</th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@if(!empty($activities)) | ||
@foreach($activities as $a) | ||
<tr> | ||
<td><img src="{{ $a->member->thumbnail }}"/></td> | ||
<td>{{ $a->member->last_name }},{{ $a->member->first_name }}</td> | ||
<td>{{ date("F j,Y h:i:s A",strtotime($a->timestamp)) }}</td> | ||
<td> | ||
<a href="{{ URL::to('members/packages/'.$a->member->id) }}" class="btn btn-success btn-sm" title="View Packages"> | ||
<i class="glyphicon glyphicon-shopping-cart"></i> Packages | ||
</a> | ||
<a href="{{ URL::to('members/update/'.$a->member->id) }}" class="btn btn-primary btn-sm" title="View Profile"> | ||
<i class="glyphicon glyphicon-user"></i> Profile | ||
</a> | ||
</td> | ||
</tr> | ||
@endforeach | ||
@endif | ||
</tbody> | ||
</table> | ||
<div style="float: none; margin:auto; text-align:center;"> | ||
<script type="text/javascript"> | ||
jQuery(document).ready(function(){ | ||
jQuery('div.pagination > ul').each(function onEachPaginator (i, item) { | ||
jQuery(item).addClass('pagination').parent().removeClass('pagination'); | ||
}); | ||
}); | ||
</script> | ||
{{ $activities->links() }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@stop |
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,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="utf-8"> | ||
</head> | ||
<body> | ||
<h2>Password Reset</h2> | ||
|
||
<div> | ||
To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}. | ||
</div> | ||
</body> | ||
</html> |
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,55 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" ng-app="globalApp" ng-controller="LoginController"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="token" content="" ng-init="token='{{ Session::token() }}'"/> | ||
<title>Gym System Login</title> | ||
<link href="{{ URL::to('assets') }}/css/bootstrap.css" rel="stylesheet"> | ||
<link href="{{ URL::to('assets') }}/css/custom.css" rel="stylesheet"> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/angular.min.js"></script> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/jquery.js"></script> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/bootstrap.min.js"></script> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/ui-bootstrap-tpls-0.6.0.min.js"></script> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/app.js"></script> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/login.js"></script> | ||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
<!--[if lt IE 9]> | ||
<script src="{{ URL::to('assets') }}/js/html5shiv.js"></script> | ||
<script src="{{ URL::to('assets') }}/js/respond.min.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="row-fluid"> | ||
<!-- LOGIN FORM --> | ||
<div class=" col-lg-4 centered"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"><i class="glyphicon glyphicon-lock"></i> System Login</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<div class="alert alert-danger" ng-show="errorMessages != false"><span ng-bind="errorMessages"></span></div> | ||
<div class="alert alert-success" ng-show="successMessage != false"><span ng-bind="successMessage"></span></div> | ||
<div class="form-group"> | ||
<label for="exampleInputEmail1">Email address</label> | ||
<input type="email" class="form-control" name="email" id="email" placeholder="Enter email" ng-model="email" ng-change="validate_email(email)"/> | ||
</div> | ||
<div class="form-group"> | ||
<label for="exampleInputPassword1">Password</label> | ||
<input type="password" class="form-control" name="password" id="password" placeholder="Password" ng-model="password"/> | ||
</div> | ||
<div class="checkbox"> | ||
<label> | ||
<input type="checkbox" name="remember" ng-model="remember" ng-disabled="email == '' || password == ''"> Remember Me | ||
</label> | ||
</div> | ||
<button type="button" class="btn btn-primary btn-lg btn-block" ng-disabled="email == '' || password == '' || validEmail == false" ng-click="login()">Login</button><br /> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- END LOGIN FORM --> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
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,123 @@ | ||
@extends('master') | ||
@section('content') | ||
<div style="clear: both;"></div> | ||
<div class="row-fluid"> | ||
|
||
<div class="col-lg-7"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Todays Logins</h3> | ||
</div> | ||
<div class="panel-body" id="latest-activities"> | ||
|
||
@if(Session::has('success')) | ||
<div class="alert alert-success">{{ Session::get('success') }}</div> | ||
@endif | ||
|
||
@if(Session::has('error')) | ||
<div class="alert alert-danger">{{ Session::get('error') }}</div> | ||
@endif | ||
|
||
<table class="table table-bordered table-hover"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>Name</th> | ||
<th>Logged In</th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@if(!empty($activities)) | ||
@foreach($activities as $a) | ||
<tr> | ||
<td><img src="{{ $a->member->thumbnail }}"/></td> | ||
<td>{{ $a->member->last_name }},{{ $a->member->first_name }}</td> | ||
<td>{{ date("F j,Y h:i:s A",strtotime($a->timestamp)) }}</td> | ||
<td> | ||
<a href="{{ URL::to('members/packages/'.$a->member->id) }}" class="btn btn-success btn-sm" title="View Packages"> | ||
<i class="glyphicon glyphicon-shopping-cart"></i> Packages | ||
</a> | ||
<a href="{{ URL::to('members/update/'.$a->member->id) }}" class="btn btn-primary btn-sm" title="View Profile"> | ||
<i class="glyphicon glyphicon-user"></i> Profile | ||
</a> | ||
</td> | ||
</tr> | ||
@endforeach | ||
@endif | ||
</tbody> | ||
</table> | ||
<div style="float: none; margin:auto; text-align:center;"> | ||
<script type="text/javascript"> | ||
jQuery(document).ready(function(){ | ||
jQuery('div.pagination > ul').each(function onEachPaginator (i, item) { | ||
jQuery(item).addClass('pagination').parent().removeClass('pagination'); | ||
}); | ||
}); | ||
</script> | ||
{{ $activities->links() }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-5"> | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Statistics</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<table class="table table-bordered table-hover"> | ||
<tbody> | ||
<tr> | ||
<td style="width: 50%;">Total Members</td> | ||
<td>{{ $total_members }}</td> | ||
</tr> | ||
<tr> | ||
<td style="width: 50%;">Total Packages</td> | ||
<td>{{ $total_packages }}</td> | ||
</tr> | ||
<tr> | ||
<td style="width: 50%;">Total Services</td> | ||
<td>{{ $total_services }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Expires Today</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<table class="table table-bordered table-hover" style="font-size:11px;"> | ||
<thead> | ||
<tr> | ||
<th>Member</th> | ||
<th>Billing Cycle</th> | ||
<th>Started</th> | ||
<th>Expiration</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@foreach($packages as $p) | ||
@if(is_object($p->package)) | ||
<tr> | ||
<td>{{ $p->member->last_name }},{{ $p->member->first_name }}</td> | ||
<td>{{ ucwords($p->package->service->name) }} {{ Setting::value('currency') }}{{ number_format($p->package->price,2) }} / {{ ucwords($p->package->cycle->name) }}</td> | ||
<td>{{ date("F j,Y",strtotime($p->registration)) }}</td> | ||
<td>{{ date("F j,Y",strtotime($p->expiration)) }}</td> | ||
</tr> | ||
@endif | ||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
@stop |
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,57 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" ng-app="globalApp"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Gym Manager</title> | ||
<link href="{{ URL::to('assets') }}/css/bootstrap.css" rel="stylesheet"> | ||
<link href="{{ URL::to('assets') }}/css/custom.css" rel="stylesheet"> | ||
<link rel="stylesheet" href="{{ URL::to('assets') }}/css/datepicker/metallic.css" type="text/css"> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/angular.min.js"></script> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/jquery.js"></script> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/bootstrap.min.js"></script> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/ui-bootstrap-tpls-0.6.0.min.js"></script> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/app.js"></script> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/zebra_datepicker.js"></script> | ||
<script type="text/javascript" src="{{ URL::to('assets') }}/js/functions.js"></script> | ||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
<!--[if lt IE 9]> | ||
<script src="{{ URL::to('assets') }}/js/html5shiv.js"></script> | ||
<script src="{{ URL::to('assets') }}/js/respond.min.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body> | ||
<div class="navbar navbar-inverse navbar-fixed-top"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="{{ URL::to('/') }}">Dashboard</a> | ||
</div> | ||
<div class="navbar-collapse collapse"> | ||
<ul class="nav navbar-nav"> | ||
<li><a href="{{ URL::to('members') }}">Members</a></li> | ||
<li><a href="{{ URL::to('packages') }}">Packages</a></li> | ||
<li><a href="{{ URL::to('packages/expires') }}">Expires</a></li> | ||
<li><a href="{{ URL::to('services') }}">Services</a></li> | ||
<li><a href="{{ URL::to('activities') }}">Activities</a></li> | ||
<li><a href="{{ URL::to('settings') }}">Settings</a></li> | ||
<li><a href="{{ URL::to('logout') }}">Logout</a></li> | ||
</ul> | ||
<form class="navbar-form navbar-right" action="{{ URL::to('members/search') }}" method="POST" ng-non-bindable> | ||
<div class="form-group"> | ||
<input type="text" name="keyword" placeholder="Member ID or Name" class="form-control"> | ||
</div> | ||
<button type="submit" class="btn btn-success">Search</button> | ||
</form> | ||
</div><!--/.navbar-collapse --> | ||
</div> | ||
</div> | ||
<div class="container" id="wrapper"> | ||
@yield('content') | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.