HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System: Linux li317-225.members.linode.com 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
User: apache (48)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/www/kosmicfarms/resources/views/productions/create.blade.php
@extends('layouts.app')

@section('content')

<div class="d-sm-flex align-items-center justify-content-between mg-b-20 mg-lg-b-25 mg-xl-b-30">
            <div>
              <nav aria-label="breadcrumb">
                <ol class="breadcrumb breadcrumb-style1 mg-b-10">
                  	<li class="breadcrumb-item"><a href="{{ url('/') }}">Home</a></li>
					<li class="breadcrumb-item"><a href="{{ url('/production') }}">Production</a></li>
					<li class="breadcrumb-item active">Add</li>
                </ol>
              </nav>
              <h4 class="mg-b-0 tx-spacing--1">Add Production</h4>
              
            </div>
          </div>
 <!-- ============================================================== -->
		<!-- 						Content Start	 						-->
		<!-- ============================================================== -->
		
            <div data-label="Example" class="df-example demo-forms">

<h4 id="section2" class="mg-b-10">Add New Production</h4>
<p class="mg-b-30">Add new production information.</p>
           
        @if ($errors->any())
            @foreach ($errors->all() as $error)
            	<div class="alert bg-danger alert-dismissible " role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <strong>Error!</strong> {{ $error }} </div>
            	
            @endforeach
		@endif
        


            <div class="row">
                <div class="col">
							
                            <form method="post" action="{{ url('/production/store') }}" class="form-horizontal">
                            	{!! csrf_field() !!}
                            	
                            		<div class="form-group">
                                        <label class="d-block">Main Category</label>
                                        {{ Form::select('category', $categories, old('category'), array('class' => 'form-control m-b')) }}
                                    </div>
							
									<div class="form-group">
										<label class="d-block">Main Product Type</label>
										{{ Form::select('producttype', $producttypes, old('producttype'), array('class' => 'form-control m-b')) }}
									</div>
							
									<div class="form-group">
										<label class="d-block">Name</label>
										<input name="name" type="text" placeholder="New product name" value="{{ old('name') }}" required="required" class="form-control form-control-rounded">
									</div>
									
									<div class="form-group">
                                        <label class="d-block">Start Date</label>
                                         <input name="startdate" type="text" class="form-control">
                                    </div>
                                    
                                    <div class="form-group">
                                        <label class="d-block">Maturity Period</label>
										<input name="maturity" type="text" class="form-control form-control-rounded">
                                    </div>


                                    <div class="form-group">
                                        <label class="d-block">Description</label>
                                        <textarea  class="form-control" name="description">{{ old('description') }}</textarea>
                                    </div>
                          
									<button type="submit" class="btn btn-success btn-icon"><i class="fa fa-floppy-o "></i>Create</button>
									<button type="reset" class="btn btn-danger btn-icon"><i class="fa fa-times"></i>Cancel</button>
									<a href="{{ URL::previous() }}" class="btn btn-warning btn-icon"><i class="fa fa-reply"></i>Back</a>		
														
                            </form>
                </div>
            </div>

            
</div>
        <!-- ============================================================== -->
		<!-- 						Content Start	 						-->
		<!-- ============================================================== -->
@endsection