PHP Classes

File: resources/views/page/addpage.blade.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   resources/views/page/addpage.blade.php   Download  
File: resources/views/page/addpage.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 3,243 bytes
 

Contents

Class file image Download
@extends('layouts.app')

@section('title', 'Add Page')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
          <h1>Add Page</h1>
          <hr>
          <form action="add/store" method="POST" class="">
            <div class="form-group{{ $errors->has('title') ? ' has-error' : '' }}">
              <div class="form-group">
                <label for="title">Title</label>
                <input type="text" class="form-control" id="title" name="title" placeholder="Title">
                @if ($errors->has('title'))
                    <span class="help-block">
                        <strong>{{ $errors->first('title') }}</strong>
                    </span>
                @endif
              </div>
            </div>

            <div class="form-group">
              <label for="content">Content</label>
              <textarea id="ckview" class="form-control" rows="20" name="content"></textarea>
            </div>

            <br>
            <h1>SEO</h1>
            <hr>
            <br>
            <div class="form-group">
              <label for="title">Title</label>
              <input type="text" class="form-control" id="titleseo" name="titleseo" placeholder="Title">
            </div>

            <div class="form-group">
              <label for="content">Description</label>
              <textarea class="form-control" rows="3" name="descriptionseo"></textarea>
            </div>

            <div class="form-group">
              <label for="content">Keyword</label>
              <textarea class="form-control" rows="3" name="keywordseo"></textarea>
            </div>

            <input type="hidden" name="author" value="{{ Auth::user()->name }}">

            {{ csrf_field() }}
            <input type="submit" name="submit" value="Save" class="btn btn-primary">
            <a href="{{action('HomeController@page')}}"><input type="button" value="Cancel" class="btn btn-default"></a>
          </form>
        </div>
    </div>
</div>

<!--Modal-->
<div class="modal fade" id="MediaModal" role="dialog">
    <div class="modal-dialog modal-lg">
        <!-- Modal content -->
        <div class="modal-content">
            <div class="modal-header">
                <button class="close" data-dismiss="modal" type="button">&times;</button>
                <h4 class="modal-title">Image library</h4>
            </div>
            <div class="modal-body">
                <div class="row">

          @foreach($media as $medias)
            <div class='col-md-3'>
              @if($medias->extension == 'png' || $medias->extension == 'jpg' || $medias->extension == 'jpeg')
                <a data-toggle="modal" data-target="#{{ $medias->id }}">
                    <img class="thumbnail img-responsive lazy loading filter image addimage" alt="" data-src="{{ $medias->path }}"/>
                </a>
              @endif
            </div> <!-- col-md-2 / end -->
            @endforeach

                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" data-dismiss="modal" data-id="" id="InsertPhoto" type="button">Insert to post</button> <button class="btn btn-default" data-dismiss="modal" type=
                "button">Cancel</button>
            </div>
        </div>
    </div>
</div>
<!--Modal-->
@endsection