@extends('layouts.members')
@section('page_title')
    New Stock
@endsection
@section('page_category')
    Stocks
@endsection
<!-- HEADER -->
@section('page_action')
    <!-- Button -->
    <a href="{{ route('member_new_stock') }}" class="btn btn-primary lift">
        All Stocks
    </a>
@endsection
@section('content')
    <div class="container-fluid ">
        <div class="card card-primary">
            <div class="panel panel-black">
                <div class="panel-heading">
                    <h3 class=" section-" style="padding:20px; marign-top:10px;">Create Stock</h3>
                </div>

                <div class="panel-body">
                    @include('includes.flash')

                    <form class="form-horizontal" method="post" action="{{ route('member_save_stock') }}">
                        {!! csrf_field() !!}

                        <div class="form-group required">
                            <label class="col-md-10 control-label" for="product">Product</label>
                            <div class="col-sm-10">
                                <select name="product_id" id="product_id" onchange="" class="form-control">
                                    @foreach ($products as $product)
                                        <option value="{!! $product->id !!}" >{!! $product->name !!}</option>
                                    @endforeach
                                </select>
                            </div>
                        </div>



                        <div class="form-group required">
                            <label class="col-md-10 control-label" for="product">Quantity</label>
                            <div class="col-sm-10">
                                <input type="number" name="quantity" value="o{{old('quantity')}}" placeholder="Enter Qyuantity" required min="1" class="form-control"/>
                            </div>
                        </div>



                        <div class="form-group">
                            <div class="col-md-2"></div>
                            <div class="col-md-10 ">
                                <button type="submit" class="btn btn-success clear-fix">Submit</button>
                            </div>
                        </div>
                    </form>
                </div>

                <div class="panel-footer">
                </div>
            </div>
        </div>

    </div>
@endsection





