Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.76 KB | None | 0 0
  1. @extends('layouts.app')
  2. @section('extracss')
  3.     <link rel="stylesheet" href="/js/pdfjs/web/buttonFormat.css">
  4. @endsection
  5. @section('content')
  6.     <div class="container">
  7.         <div class="row">
  8.             <div class="col-md-8 col-md-offset-2">
  9.                 <div class="panel panel-default">
  10.                     <div class="panel-heading">
  11.                         Create a new Collection
  12.                     </div>
  13.                     <div class="panel panel-body">
  14.                         <div class="col-sm-offset-9 col-sm-3">
  15.                             {{--back button--}}
  16.                             {{ Form::open(array('route' => 'collections.index')) }}
  17.                             {{ Form::hidden('_method', 'GET') }}
  18.                             {{ Form::submit('Back', array('class' => 'btn btn-primary')) }}
  19.                             {{ Form::close() }}
  20.                         </div>
  21.                         <div class="col-sm-12 panel-body">
  22.  
  23.                             {{ Form::open(array('route' => 'collections.store')) }}
  24.                             {{ csrf_field() }}
  25.  
  26.                             {{ Form::label('name', 'Collection Title') }}
  27.                             {{ Form::text('name', "", ['placeholder' => 'Enter the title']) }}
  28.  
  29.                             @if ($errors->has('name'))
  30.                                 @if ($error = $errors->first('name'))
  31.                                     <div class="alert alert-danger">
  32.                                         {{ $error }}
  33.                                     </div>
  34.                                 @endif
  35.                             @endif
  36.  
  37.                             <div class="col-sm-12">
  38.                                 {{ Form::label('description', 'Collection Description') }}
  39.                             </div>
  40.                             <div class="col-sm-12">
  41.                                 {{ Form::textarea('description', "", ['placeholder' => 'Enter the description']) }}
  42.                             </div>
  43.                             @if ($errors->has('description'))
  44.                                 @if ($error = $errors->first('description'))
  45.                                     <div class="alert alert-danger">
  46.                                         {{ $error }}
  47.                                     </div>
  48.                                 @endif
  49.                             @endif
  50.                             <div class="col-sm-12">
  51.                                 {{ Form::submit('Create', array('class' => 'btn btn-primary')) }}
  52.                                 {{ Form::close() }}
  53.                             </div>
  54.  
  55.  
  56.                         </div>
  57.                     </div>
  58.                 </div>
  59.             </div>
  60.         </div>
  61.     </div>
  62. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement