Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('layouts.app')
- @section('content')
- <div class="row">
- <div class="col-lg-12 margin-tb">
- <div class="pull-left">
- <h2>Add New Category</h2>
- </div>
- <div class="pull-right">
- <a class="btn btn-primary" href="{{ route('categories.index') }}"> Back</a>
- </div>
- </div>
- </div>
- @if (count($errors) > 0)
- <div class="alert alert-danger">
- <strong>Whoops!</strong> There were some problems with your input.<br><br>
- <ul>
- @foreach ($errors->all() as $error)
- <li>{{ $error }}</li>
- @endforeach
- </ul>
- </div>
- @endif
- <formaction="{{ route('categories.store') }}" method="POST">
- @csrf
- <div class="row">
- <div class="col-xs-12 col-sm-12 col-md-12">
- <div class="form-group">
- <strong>Category Name:</strong>
- <input type="text" name="category" placeholder="Category Name" class="form-control">
- </div>
- </div>
- <div class="col-xs-12 col-sm-12 col-md-12 text-center">
- <button type="submit" class="btn btn-primary">Submit</button>
- </div>
- </div>
- </form>
- @endsection
Advertisement
Add Comment
Please, Sign In to add comment