@extends('layouts.master')

@section('content')

@if (session()->has('message'))
<div class="row">
        <!-- left column -->
        <div class="col-md-2"></div>
<div class="col-md-4 alert alert-success alert-dismissible" style="font-size:18px;font-weight:bold;width:400px;margin-left:15px">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                {!! session('message') !!}
              </div>
              </div> 
@endif


<div class="row">
        <!-- left column -->
        <div class="col-md-2"></div>
        <div class="col-md-8">
          <!-- general form elements -->
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">Add New Sell Store  - اضافة مخزن بيع جديد   </h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form   role="form" method="POST" action="{{ url('/store/branch/create') }}">
                        {{ csrf_field() }}
              <div class="box-body">
                
                
              <div class="form-group">
                <label>Branch </label>
                <select class="form-control select2" style="width: 100%;" name="branch_id" id="vehicle_id" required>
                  @foreach( $branches as $branche ) 
                  <option value="{{ $branche->id }}">{{$branche->name}}</option>
                  @endforeach
                </select>
                </div>



                <div class="form-group">
                <label>Stores </label>
                <select class="form-control select2" style="width: 100%;" name="store_id" id="vehicle_id" required>
                  @foreach( $stores as $store ) 
                  <option value="{{ $store->id }}">{{$store->store_name}}</option>
                  @endforeach
                </select>
                </div>


                <div class="form-group">
                  <label for="exampleInputPassword1">Quantity  </label>
                  <input type="number"  step=0.01 name="quantity" value='0' class="form-control"  placeholder="Quantity" >
                </div>
                
                 <div class="form-group">
                  <label for="exampleInputPassword1">Price Per Unit  </label>
                  <input type="number"  step=0.01 name="unit_price" value='0' class="form-control"  placeholder="unit_price" >
                </div>

                

              </div>
              <!-- /.box-body -->

              <div class="box-footer">
                <button type="submit" class="btn btn-primary">Save</button>
              </div>
            </form>
          </div>    
</div>
         
      </div>

@endsection