This file contains hidden or 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
@extends('layouts.master') | |
@section('title') | |
<title>Create a Lesson</title> | |
@endsection | |
@section('content') |
This file contains hidden or 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
<?php | |
namespace App\Queries\GridQueries; | |
use DB; | |
use App\Queries\GridQueries\Contracts\DataQuery; | |
class LessonQuery implements DataQuery | |
{ | |
public function data($column, $direction) |
This file contains hidden or 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
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Queries\GridQueries\GridQuery; | |
use App\Queries\GridQueries\WidgetQuery; | |
use App\Queries\GridQueries\MarketingImageQuery; | |
use App\Queries\GridQueries\CategoryQuery; | |
use App\Queries\GridQueries\SubcategoryQuery; |
This file contains hidden or 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
<template> | |
<div class="row"> | |
<div class="col-lg-12"> | |
<form id="search"> | |
Search <input name="query" v-model="query" @keyup="search(query)"> | |
</form> | |
<div class="pull-right"> | |
{{ total }} Total Results | |
</div> | |
<section class="panel"> |
This file contains hidden or 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
@extends('layouts.master') | |
@section('title') | |
<title>{{ $lesson->name }} Lesson</title> | |
@endsection | |
@section('content') |
This file contains hidden or 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
@extends('layouts.master') | |
@section('title') | |
<title>Lessons</title> | |
@endsection | |
@section('content') |
This file contains hidden or 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
@extends('layouts.master') | |
@section('title') | |
<title>Edit Lesson</title> | |
@endsection | |
@section('content') |
This file contains hidden or 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
@extends('layouts.master') | |
@section('title') | |
<title>Create a Lesson</title> | |
@endsection | |
@section('content') |
This file contains hidden or 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
<?php | |
namespace App\Http\Controllers; | |
use App\Http\AuthTraits\OwnsRecord; | |
use Illuminate\Http\Request; | |
use App\Lesson; | |
use Redirect; | |
use Illuminate\Support\Facades\Auth; | |
use App\Exceptions\UnauthorizedException; |
This file contains hidden or 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
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateLessonsTable extends Migration | |
{ | |
/** | |
* Run the migrations. |