@extends('layouts.base_portal')
@section('inner_content')
    <div class="row">
        <div class="col-5">
            <div class="row p-b-5 b-b b-grey m-b-10 m-l-0 m-r-0">
                <div class="col no-padding">
                    <h6>Arrived Parcel</h6>
                </div>
            </div>
            <a href="{{route('packing_list.arrived_parcel.export')}}" target="_blank">
                <button type="button" class="btn btn-sm p-t-10 p-b-10 p-r-35 p-l-35 btn-primary b-rad-none">
                    <div class="row align-items-center">
                        <div class="col-auto p-r-0 p-l-0">
                            <i class="fa fa-file-excel-o fs-16"></i>
                        </div>
                        <div class="col p-r-5">Export To Excel</div>
                    </div>
                </button>
            </a>
            <list-component section="warehouseListSection" :endpoint="route('api.packing_list.list')" :options="{packing_list_type: 1, per_page: 20, order_by: {column: 'arrival_date', DESC: true}, with_arrival_date: true}" >
                <template slot="list" slot-scope="{data}">
                    <parcel-component v-for="packages in data.packages" :data="packages" :key="packages.id"></parcel-component>
                </template>
            </list-component>
        </div>
    </div>
    <div class="row">
        <div class="col">
            <div class="row p-b-5 b-b b-grey m-b-10 m-l-0 m-r-0">
                <div class="col no-padding">
                    <h6>On Hold Parcel</h6>
                </div>
            </div>
            <div class="row align-items-center m-b-5 p-b-10 b-b b-grey muted all-caps fs-10">
                <div class="col-2">Marking</div>
                <div class="col text-center">Quantity</div>
                <div class="col">CBM</div>
                <div class="col">Overweight CBM</div>
                <div class="col">Total CBM</div>
                <div class="col">status</div>
                <div class="col">Delivery Date</div>
                <div class="col"></div>
            </div>
            <list-component section="onHoldParcel" :endpoint="route('api.packing_list.list')" :options="{status_in: [5], packing_list_type: 2, per_page: 20}">
                <template slot="list" slot-scope="{data}">
                    <warehouse-packing-list-component :data="data"></warehouse-packing-list-component>
                </template>
            </list-component>
        </div>
    </div>
@endsection