Last active
August 27, 2017 15:53
-
-
Save sonOfRa/dc8e6e583bd3d94c23d4409047a22574 to your computer and use it in GitHub Desktop.
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>App - @yield('title')</title> | |
| <link href="{{ mix('/css/app.css') }}" rel="stylesheet"> | |
| <script src="{{ mix('/js/app.js') }}"></script> | |
| </head> | |
| <body> | |
| @include('layouts.header') | |
| <div class="container"> | |
| @include ('partials.messages') | |
| @yield('content') | |
| <footer class="footer"> | |
| <small>Footer goes here</small> | |
| </footer> | |
| </div> | |
| </body> | |
| </html> |
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.application') | |
| @section('title', 'New Category') | |
| @section('content') | |
| <h1>New Category</h1> | |
| <div class="row"> | |
| <div class="col-md-4"> | |
| @if ($errors->any()) | |
| <div class="alert alert-danger"> | |
| <ul> | |
| @foreach ($errors->all() as $error) | |
| <li>{{ $error }}</li> | |
| @endforeach | |
| </ul> | |
| </div> | |
| @endif | |
| {{ Form::model($category, array('route' => 'categories.store')) }} | |
| <div class="form-group"> | |
| {!! Form::label('name', 'Category name') !!} | |
| {!! Form::text('name', $category->name, ['class' => 'form-control', 'placeholder' => 'Category name']) !!} | |
| </div> | |
| <button class="btn btn-primary"><i class="glyphicon glyphicon-save"></i> Save category</button> | |
| {{ Form::close() }} | |
| </div> | |
| </div> | |
| @endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment