Friday, April 28, 2017

CURD operation create.blade.php

@extends('adminlte::page')

@section('title', 'Subscriptions')

@section('content_header')
   
@stop

@section('content')


   


 <!-- Horizontal Form -->
          <div class="box box-info">
            <div class="box-header with-border">
              <h3 class="box-title">Add Subscriptions Plan</h3>
            </div>
           
@if (count($errors) > 0)
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
    <li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
            <!-- /.box-header -->
            <!-- form start -->
          
{!! Form::open(array('route' => 'subscriptions.store','class' => 'form','id' => 'createinspector','name' => 'createinspector','files' => true)) !!}
{!! csrf_field() !!}
              <div class="box-body">

                <div class="form-group">
                  <label for="inputEmail3" class="col-sm-3 control-label">Name</label>

                  <div class="col-sm-8">
                    <input type="text" class="form-control" name="subscription_name" placeholder="Name">
                  </div>
                </div>

                <div class="form-group">
                  <label for="inputPassword3" class="col-sm-3 control-label">Description</label>

                  <div class="col-sm-8">
                    <input type="text" class="form-control" name="subscription_description" placeholder="Description">
                  </div>
                </div>

                <div class="form-group">
                  <label for="inputPassword3" class="col-sm-3 control-label">Plan Type</label>

                  <div class="col-sm-8">
                    <input type="text" class="form-control" name="subscription_type" placeholder="Plan Type">
                  </div>
                </div>

                <div class="form-group">
                  <label for="inputPassword3" class="col-sm-3 control-label">Price</label>

                  <div class="col-sm-8">
                    <input type="text" class="form-control" name="subscription_price" placeholder="Price">
                  </div>
                </div>
             
                 <div class="form-group">
                  <label for="inputPassword3" class="col-sm-3 control-label">Days</label>

                  <div class="col-sm-8">
                    <input type="text" class="form-control" name="days" placeholder="Days">
                  </div>
                </div>

              
              </div>
              <!-- /.box-body -->
              <div class="box-footer">
                <a type="submit" class="btn btn-default" href="{{ url('admin/subscriptions/') }}">Cancel</a>
                <button type="submit" class="btn btn-info pull-right">Submit</button>
              </div>
              <!-- /.box-footer -->
               
{!! Form::close() !!}
          </div>
          <!-- /.box -->




@stop

@section('css')
    <link rel="stylesheet" href="/css/admin_custom.css">
@stop

@section('js')
    <script> console.log('Hi!'); </script>
@stop




No comments:

Post a Comment

What are the main differences between Laravel 4 and Laravel 5.x?

Summarizing Laravel 5.0 Release notes from the above article:  1. The old app/models directory has been entirely removed. 2. Controllers...