@extends('admin/layouts/default')

{{-- Page title --}}
@section('title')
Add Shareable Link
@parent
@stop

{{-- page level styles --}}
@section('header_styles')
    @include('admin.layouts.css')
@stop

{{-- Page content --}}
@section('content')
<section class="content-header">
                <!--section starts-->
                <h1>Add New Shareable Link</h1>
                <ol class="breadcrumb">
                    <li>
                        <a href="{{ route('admin.dashboard') }}">
                            <i class="livicon" data-name="home" data-size="14" data-loop="true"></i>
                            Dashboard
                        </a>
                    </li>
                    <li ><a href="{{ URL::to('admin/shareable') }}">Shareable Link List</a></li>
                    <li class="active">
                        	Add New Shareable Link
                    </li>
                </ol>
            </section>
            <!--section ends-->
<section class="content paddingleft_right15">
    <!--main content-->
    <div class="row">
        <div class="panel panel-primary ">
            <div class="panel-heading">
                <h3 class="panel-title">
                    Shareable Link Form
                </h3>
            </div>
            <div class="panel-body">
                <form name="first" method="post" action="{{ route('shareable.store') }}" enctype="multipart/form-data">

                <input type="hidden" name="_token" value="<?=csrf_token()?>">

                 @if ($errors->any())
                    <div class="row">
                        <div class="col-md-9 col-lg-offset-3 col-md-offset-3 pd-r lert alert-danger">
                            <strong>Whoops!</strong> There were some problems with your input.<br>
                            <ul>
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                @endif                    

                <div id="banner" class="panel">
                    <div class="panel-body">

                        <div class="form-group col-md-6">
                            <label for="e1" class="control-label">User Name: *</label>
                            <input type="text" name="name" id="name" class="form-control input-md" required="required" value="{{ old('name') }}">
                            <div>
                            </div>
                        </div>

                        <div class="form-group col-md-6">
                            <label for="e1" class="control-label">D.O.I: *</label>
                            <input type="text" name="doi" id="doi" class="form-control input-md" required="required" value="{{ old('doi') }}">
                            <div>
                            </div>
                        </div>

                        <div class="form-group col-md-6">
                            <label for="e1" class="control-label">N.O.D Allow: *</label>
                            <input type="text" name="nod_allow" id="nod_allow" class="form-control input-md" required="required" value="{{ old('nod_allow') }}">
                            <div>
                            </div>
                        </div>

                        <div class="form-group col-md-6">
                            <label for="e1" class="control-label">Comments:</label>
                            <textarea class="form-control resize_vertical" id="comments" name="comments" placeholder="Please enter your message here..." rows="1">{{ old('comments') }}</textarea>
                        </div>

                        <div class="form-group col-md-6">
                            <label for="e1" class="control-label">From Date: *</label>
                            <input type="date" name="from_date" class="form-control" required="required" value="{{ old('from_date') }}">
                        </div>

                        <div class="form-group col-md-6">
                            <label for="e1" class="control-label">To Date: *</label>
                            <input type="date" name="to_date" class="form-control" required="required" value="{{ old('to_date') }}">
                        </div>


                        <div class="form-group text-center col-md-12">
                            <button class="btn btn-primary text-center" type="submit">Save Shareable Link</button>
                        </div>
                    </div>
                   </div>
                </div>
            </form>
            </div>
        </div>

    </div>
    <!--main content ends--> </section>
            <!-- content --> 
    @stop

{{-- page level scripts --}}
@section('footer_scripts')

    @include('admin.layouts.js')

@stop
