@extends('layouts.website.website')
@section('content')
    <!--main content start-->
<section id="main-content">
    <section class="wrapper site-min-height">
        <!-- page start-->
        <section class="panel-body col-md-6">
            <header class="panel-heading">
                Add Medicine
            </header>
            <div class="row">
                <div class="adv-table editable-table">
                    <div class="clearfix">
                        <div class="col-md-12">
                            <section class="panel row">
                                <div class="panel-body">
                                    <form role="form" action="{{ route('website_medicineStore') }}" class="clearfix" method="post" enctype="multipart/form-data">
                                        @csrf
                                        <div class="form-group col-md-6">
                                            <label for="exampleInputEmail1"> Name</label>
                                            <input type="text" class="form-control" name="name" id="exampleInputEmail1" value="" placeholder="" />
                                        </div>
                                        <div class="form-group col-md-6">
                                            <label for="exampleInputEmail1"> Category</label>
                                            <select class="form-control m-bot15 select2" name="category_id" value="">
                                                @foreach (App\MadicineCategory::orderBy('name','ASC')->get() as $item)
                                                    <option value="{{ $item->id }}"> {{ $item->name }} </option>
                                                @endforeach
                                            </select>
                                        </div>
                                        <div class="form-group col-md-4">
                                            <label for="exampleInputEmail1"> Purchase Price</label>
                                            <input type="text" class="form-control" name="price" id="exampleInputEmail1" value="" placeholder="" />
                                        </div>
                                        <div class="form-group col-md-4">
                                            <label for="exampleInputEmail1"> Sale Price</label>
                                            <input type="text" class="form-control" name="saleprice" id="exampleInputEmail1" value="" placeholder="" />
                                        </div>
                                        <div class="form-group col-md-4">
                                            <label for="exampleInputEmail1"> Store Box</label>
                                            <input type="text" class="form-control" name="storebox" id="exampleInputEmail1" value="" placeholder="" />
                                        </div>
                                        <div class="form-group col-md-4">
                                            <label for="exampleInputEmail1"> Quantity</label>
                                            <input type="text" class="form-control" name="quantity" id="exampleInputEmail1" value="" placeholder="" />
                                        </div>
                                        <div class="form-group col-md-4">
                                            <label for="exampleInputEmail1"> Generic Name</label>
                                            <input type="text" class="form-control" name="genericname" id="exampleInputEmail1" value="" placeholder="" />
                                        </div>
                                        <div class="form-group col-md-4">
                                            <label for="exampleInputEmail1"> Company</label>
                                            <input type="text" class="form-control" name="company" id="exampleInputEmail1" value="" placeholder="" />
                                        </div>
                                        <div class="form-group col-md-4">
                                            <label for="exampleInputEmail1"> Effects</label>
                                            <input type="text" class="form-control" name="effect" id="exampleInputEmail1" value="" placeholder="" />
                                        </div>
                                        <div class="form-group col-md-4">
                                            <label for="exampleInputEmail1"> Expire date</label>
                                            <input type="date" class="form-control" name="expire_date" id="exampleInputEmail1" value="" placeholder="" />
                                        </div>

                                        <input type="hidden" name="id" value="" />
                                        <div class="form-group col-md-12">
                                            <button type="submit" name="submit" class="btn btn-info pull-right">Submit</button>
                                        </div>
                                    </form>
                                </div>
                            </section>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- page end-->
    </section>
</section>
<!--main content end-->

@endsection
