@extends('layouts.master')
@section('title','Bia')
@section('content')
        
        
        <!-- Content -->
        <div class="content">
            <div class="animated fadeIn">
                <div class="row">

                    <div class="col-md-12">
                        
                            {{-- <div class="card-header">
                                <strong class="card-title">I. INFORMASI ORGANISASI & KEGIATAN</strong>
                            </div> --}}
                           

                                <form action="{{ route('waste_transaction.store') }}" method="post" enctype="multipart/form-data" class="form-horizontal">
                                    @csrf
                                    <div class="card">
                                        <div class="card-body card-block">
                                            
                                            

                                            <div class="row form-group">
                                                <div class="col col-md-2">
                                                    <label for="nama_group" class="form-control-label">Tanggal</label>
                                                </div>
                                                <div class="col-12 col-md-10">
                                                    <input type="date" id="trx_date" name="trx_date" class="form-control" value="{{ date('Y-m-d') }}" required>
                                                   
                                                </div>
                                            </div>

                                            <div class="row form-group">
                                                <div class="col col-md-2">
                                                    <label for="nama_group" class="form-control-label">Lokasi</label>
                                                </div>
                                                <div class="col-12 col-md-10">
                                                    <select name="location_id" id="location_id" class="form-control" required>
                                                        <option value="">--Pilih--</option>
                                                        @foreach ($lokasi as $item)
                                                            <option value="{{ $item->id }}">{{ $item->name }}</option>
                                                        @endforeach
                                                    </select>
                                                   
                                                </div>
                                            </div>


                                            <div class="row form-group">
                                                <div class="col col-md-2">
                                                    <label for="nama_group" class="form-control-label">Kategori</label>
                                                </div>
                                                <div class="col-12 col-md-10">
                                                    <select name="category_id" id="category_id" class="form-control" required>
                                                        <option value="">--Pilih--</option>
                                                        @foreach ($kategori as $item)
                                                            <option value="{{ $item->id }}">{{ $item->name }}</option>
                                                        @endforeach
                                                    </select>
                                                   
                                                </div>
                                            </div>


                                            <div class="row form-group">
                                                <div class="col col-md-2">
                                                    <label for="nama_group" class="form-control-label">IN/OUT</label>
                                                </div>
                                                <div class="col-12 col-md-10">
                                                    <select name="direction" id="direction" class="form-control" required>
                                                        <option value="">--Pilih--</option>
                                                        <option value="IN">IN</option>
                                                        <option value="OUT">OUT</option>
                                                    </select>
                                                   
                                                </div>
                                            </div>

                                            <div class="row form-group">
                                                <div class="col col-md-2">
                                                    <label for="nama_group" class="form-control-label">Tipe Proses</label>
                                                </div>
                                                <div class="col-12 col-md-10">
                                                    <select name="process_type_id" id="process_type_id" class="form-control" required>
                                                        <option value="">--Pilih--</option>
                                                        @foreach ($tipe_proses as $item)
                                                            <option value="{{ $item->id }}">{{ $item->name_process_type }}</option>
                                                        @endforeach
                                                    </select>
                                                   
                                                </div>
                                            </div>


                                            <div class="row form-group">
                                                <div class="col col-md-2">
                                                    <label for="nama_group" class="form-control-label">Berat (kg)</label>
                                                </div>
                                                <div class="col-12 col-md-3">
                                                    <input type="number" class="form-control" name="weight_kg" id="weight_kg" value="">
                                                   
                                                </div>
                                            </div>

                                            
                                           
                                        </div>
                                    </div>
                                    
                                   
                                    
                                    <br/>
                                    <button id="btnSave" type="submit" class="btn btn-primary">
                                        Simpan
                                    </button>
                                    <a href="{{ route('waste_transaction.index') }}" class="btn btn-default">
                                        Batal
                                    </a>
                                </form>
                            
                           
                        
                    </div>


                </div>
            </div><!-- .animated -->
        </div><!-- .content -->
        <!-- /.content -->
@section('js')


@endsection       


@endsection