Skip to content

Instantly share code, notes, and snippets.

@sonOfRa
Last active August 27, 2017 15:53
Show Gist options
  • Select an option

  • Save sonOfRa/dc8e6e583bd3d94c23d4409047a22574 to your computer and use it in GitHub Desktop.

Select an option

Save sonOfRa/dc8e6e583bd3d94c23d4409047a22574 to your computer and use it in GitHub Desktop.
<!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>
@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