This repository was archived by the owner on Sep 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from avored/dev
merging dev to master
- Loading branch information
Showing
8 changed files
with
132 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
return [ | ||
'module-list' => 'Module List', | ||
'module-upload' => 'Upload Module', | ||
'module-upload-file' => 'Upload Module File', | ||
|
||
'activate' => 'Activate', | ||
'deactivate' => 'Deactivate', | ||
]; |
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,51 @@ | ||
@extends('avored-ecommerce::layouts.app') | ||
|
||
@section('content') | ||
<div class="row mt-3"> | ||
|
||
<div class="col-12"> | ||
<div class="h1 float-left"> | ||
{{ __('avored-ecommerce::module.module-list') }} | ||
</div> | ||
|
||
<div class="float-right"> | ||
<a href="{{ route('admin.module.create') }}" | ||
class="btn btn-primary"> | ||
{{ __('avored-ecommerce::module.module-upload') }} | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
@if(count($modules) <= 0) | ||
<p>Sorry No Modules Found</p> | ||
@else | ||
@foreach($modules as $module) | ||
<div class="col-3 mt-3"> | ||
<div class="card"> | ||
<img class="card-img-top" src="http://placehold.it/250x250" alt="Card image cap"> | ||
|
||
<div class="card-body"> | ||
<div class="h5">{{ $module->name() }}</div> | ||
<p>{{ $module->description() }}</p> | ||
<button | ||
class="btn btn-primary" disabled> | ||
|
||
@if("enabled" == strtolower($module->status())) | ||
Enabled | ||
@else | ||
Disabled | ||
@endif | ||
</button> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
@endforeach | ||
|
||
@endif | ||
|
||
</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
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,21 @@ | ||
<?php | ||
|
||
namespace AvoRed\Ecommerce\Http\Controllers; | ||
|
||
use AvoRed\Framework\Modules\Facade as Module; | ||
|
||
class ModuleController extends Controller | ||
{ | ||
/** | ||
* Display a listing of the modules. | ||
* | ||
* @return \Illuminate\Http\Response | ||
*/ | ||
public function index() | ||
{ | ||
$modules = Module::all(); | ||
|
||
return view('avored-ecommerce::module.index') | ||
->with('modules', $modules); | ||
} | ||
} |
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