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="inline-block" v-html="require('icon-' + this.icon + '.svg')"></div> | |
| </template> | |
| <style module> | |
| .svg { | |
| fill: currentColor; | |
| height: 1em; | |
| margin-top: -4px; | |
| vertical-align: middle; |
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
| <table class="table table-hover table-bordered table-striped"> | |
| <thead> | |
| <th>Thumbnail</th> | |
| <th>Name</th> | |
| <th>Weight</th> | |
| <th>Featured</th> | |
| <th>Active</th> | |
| <th>Date Created</th> | |
| </thead> |
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
| <div class="row"> | |
| <div class="col-xs-6 col-lg-4"> | |
| <a href="/user"><h2>Users</h2></a> | |
| <a href="/user"><p>Use this link to manage your applications's users</p></a> | |
| <p><a class="btn btn-default" href="/user" role="button">View details »</a></p> | |
| </div><!--/.col-xs-6.col-lg-4--> | |
| <div class="col-xs-6 col-lg-4"> | |
| <a href="/profile"><h2>Profiles</h2></a> | |
| <a href="/profile"><p>Use this link to manage your applications's profiles</p></a> | |
| <p><a class="btn btn-default" href="/profile" role="button">View details »</a></p> |
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>{{ $marketingImage->name }}</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
| <!-- image_weight Form Input --> | |
| <div class="form-group{{ $errors->has('image_weight') ? ' has-error' : '' }}"> | |
| <label class="control-label">Image Weight</label> | |
| <input type="number" class="form-control" name="image_weight" value="{{ old('image_weight') ? old('image_weight') : 100 }}"> | |
| @if ($errors->has('image_weight')) |
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\Traits\ManagesImages; | |
| use App\Http\Requests\CreateImageRequest; | |
| use App\MarketingImage; | |
| use App\Http\Requests\EditImageRequest; | |
| class MarketingImageController extends Controller |
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 AddImageWeightToMarketingImagesTable extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
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
| <div> | |
| <div> | |
| @if ($notEnoughImages) | |
| Not enough images in slider. Populate images or remove slider include from pages.index. | |
| @else | |
| <div id="carousel-marketing-images" class="carousel slide" data-ride="carousel" data-interval="false"> |
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
| public function index() | |
| { | |
| $featuredImage = MarketingImage::where('is_featured', 1) | |
| ->where('is_active', 1) | |
| ->first(); | |
| $activeImages = MarketingImage::where('is_featured', 0) | |
| ->where('is_active', 1) | |
| ->get(); |
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
| private function notEnoughSliderImages($featuredImage, $activeImages) | |
| { | |
| return (!count($featuredImage) || !count($activeImages) >= 1) ? true : false; | |
| } |
NewerOlder