@extends('layouts.fixed')
@section('title','Goods in ')
@section('content')
    <!-- Content Header (Page header) -->
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="m-0 text-dark">Manage  Goods In </h1>
                </div><!-- /.col -->
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="#">Goods In Management</a></li>
                        <li class="breadcrumb-item active">Add Goods In </li>
                    </ol>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->


    <!-- Main content -->
    <section class="content">
        <div class="col-lg-12">
            <div class="row">
                {{--create/edit start --}}
                <div class="col-lg-12">
                    <div class=" bg-light">
                        <div class="card card-info card-outline">
                            <div class="card-header">
                                <h3 class="card-title">Add Inventory Goods In </h3>
                                <div class="card-tools">
                                    {{--  <button type="button" class="btn btn-tool" data-widget="collapse">
                                        <i class="fas fa-plus"></i>
                                    </button>  --}}
                                </div>
                            </div> <!-- /.card-header -->

                            <div class="card-body" style="display: block;">
                                {{ Form::open(['route'=>'goodsin.vstore','method'=>'post', 'class'=>'form-horizontal']) }}
                                <div class="row">
                                    {{-- @include('inventory.goodsin.form-goodsin')
                                    <hr> --}}

                                    <div class="col-lg-12">
                                        <h6 class="text-center bg-primary" style="padding:5px 0;font-size: 1.5rem;font-weight: bold;letter-spacing: 10px">GOODS IN</h6>
                                        <hr>
                                        <table class="table-hover table-bordered  table goodsinProList">
                                            <thead>
                                                <tr>
                                                    <th>SL</th>
                                                    <th width="30%">groupid</th>
                                                    <th width="30%">group name</th>
                                                   
                                                </tr>
                                            </thead>

                                            <tbody class="proList">
                                                @foreach ($goods as $good)
                                                <tr>
                                                    <td><input type="number"  name="id[]" class="form-control" value="{{ $good->id }}"></td>
                                                    <td><input type="text"  name="groupid[]" class="form-control" value="{{ $good->product->group_id }}"></td> 
                                                    <td><input type="text"  name="qty[]" class="form-control" value="{{ $good->product->group->name}}"></td> 

                                                </tr>
                                                @endforeach
                                            </tbody>

                                        </table>
                                    </div>

                                    <div class="col-lg-9"></div>


                                    {{-- <div class=" col-lg-offset-9  col-lg-12">
                                        <div class="form-group">
                                            {{ Form::label('','Goods in Note : ') }}
                                            {{ Form::textarea('note',null,['class'=>'form-control','placeholder'=>'Ex. Goods in Note ','rows'=>5,'cols'=>5  ]) }}
                                        </div>
                                    </div> --}}


                                    <div class="col-lg-5"></div>

                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            {{ Form::submit('Save Goods In',['class'=>'form-control btn btn-info']) }}
                                        </div>
                                    </div>
                                    <div class="col-lg-5"></div>
                                </div>
                                {{ Form::close() }}
                            </div>
                        </div>
                    </div>
                </div>
                {{--create/edit  start --}}



            </div>

        </div>
        <hr>
        
        <div class="modal fade" id="quickViewModal">
            <div class="modal-dialog modal-md">
              <div class="modal-content">
                <div class="modal-header">
                  <h4 class="modal-title" id="quickViewModalTitle">Edit Modal</h4>
                  <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                  </button>
                </div>
                <div class="modal-body" id="quickViewModalBody">
                  
                </div>
                <div class="modal-footer justify-content-between" id="quickViewModalFooter">
                  <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                  <button type="submit" class="btn btn-primary">Save changes</button>
                </div>
              </div>
            </div>
        </div>
    </section><!-- /.content -->

@stop

@section('style')
    <!-- DataTables -->

    <link rel="stylesheet" href="{{ asset('plugins/datatables/dataTables.bootstrap4.css') }}">
    <link href='https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css' rel='stylesheet' type='text/css'>
    <link href='https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.4/jquery-confirm.min.css' rel='stylesheet' type='text/css'>
    
@stop

@section('plugin')
    <!-- DataTables -->
    <script src="{{ asset('plugins/datatables/jquery.dataTables.js') }}"></script>
    <script src="{{ asset('plugins/datatables/dataTables.bootstrap4.js') }}"></script>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js'></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.4/jquery-confirm.min.js"></script>
@stop

@section('script')

@stop