@props([ 'stock', 'editing' => '0' ]) @php $product = \App\Product::where('barcode',$stock->barcode)->first(); $fields = [ [ 'type' => 'input', 'input_type' => 'date', 'name' => 'expire_date', 'value' => $stock->expire_date, 'label' => 'Expire Date', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_krw_cost', 'label' => 'KRW Product Cost', 'value' => $stock->total_krw_cost, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_jpy_cost', 'label' => 'JPY Product Cost', 'value' => $stock->total_jpy_cost, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_usd_cost', 'label' => 'USD Product Cost', 'value' => $stock->total_usd_cost, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'number', 'name' => 'stock_count', 'value' => $stock->stock_count, 'label' => 'StockCount', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type'=>'toggle', 'label' =>'Status 1', 'name' => 'stock_1_status', 'value' => $stock->stock_1_status ==1 ?'ON':'OFF', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'expire_date_2', 'value' => $stock->expire_date_2, 'label' => 'Expire Date 2', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_krw_cost_2', 'label' => 'KRW Product Cost2', 'value' => $stock-> total_krw_cost_2, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_joy_cost_2', 'label' => 'JPY Product Cost2', 'value' => $stock->total_jpy_cost_2, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_usd_cost_2', 'label' => 'USD Product Cost2', 'value' => $stock->total_usd_cost_2, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'number', 'name' => 'stock_count_2', 'value' => $stock->stock_count_2, 'label' => 'StockCount 2', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type'=>'toggle', 'name' => 'stock_2_status', 'value' => $stock->stock_2_status ==1 ?'ON':'OFF', 'label' => 'Status 2', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'expire_date_3', 'value' => $stock->expire_date_3, 'label' => 'Expire Date 3', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_krw_cost_3', 'label' => 'KRW Product Cost3', 'value' => $stock-> total_krw_cost_3, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_jpy_cost_3', 'label' => 'JPY Product Cost3', 'value' => $stock->total_jpy_cost_3, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_usd_cost_3', 'label' => 'USD Product Cost3', 'value' => $stock->total_usd_cost_3, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'number', 'name' => 'stock_count_3', 'value' => $stock->stock_count_3, 'label' => 'StockCount 3', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type'=>'toggle', 'name' => 'stock_3_status', 'value' => $stock->stock_3_status ==1 ?'ON':'OFF', 'label' => 'Status 3', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'expire_date_4', 'value' => $stock->expire_date_4, 'label' => 'Expire Date 4', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_krw_cost_4', 'label' => 'KRW Product Cost4', 'value' => $stock-> total_krw_cost_4, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_jpy_cost_4', 'label' => 'JPY Product Cost4', 'value' => $stock->total_jpy_cost_4, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_usd_cost_4', 'label' => 'USD Product Cost4', 'value' => $stock->total_usd_cost_4, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'number', 'name' => 'stock_count_4', 'value' => $stock->stock_count_4, 'label' => 'StockCount 4', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type'=>'toggle', 'name' => 'stock_4_status', 'value' => $stock->stock_4_status ==1 ?'ON':'OFF', 'label' => 'Status 4', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'expire_date_5', 'value' => $stock->expire_date_5, 'label' => 'Expire Date 5', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_krw_cost_5', 'label' => 'KRW Product Cost5', 'value' => $stock-> total_krw_cost_5, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_jpy_cost_5', 'label' => 'JPY Product Cost5', 'value' => $stock->total_jpy_cost_5, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_usd_cost_5', 'label' => 'USD Product Cost5', 'value' => $stock->total_usd_cost_5, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'number', 'name' => 'stock_count_5', 'value' => $stock->stock_count_5 , 'label' => 'StockCount 5', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type'=>'toggle', 'name' => 'stock_5_status', 'value' => $stock->stock_5_status ==1 ?'ON':'OFF', 'label' => 'Status 5', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'expire_date_6', 'value' => $stock->expire_date_6, 'label' => 'Expire Date 6', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_krw_cost_6', 'label' => 'KRW Product Cost6', 'value' => $stock-> total_krw_cost_6, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_jpy_cost_6', 'label' => 'JPY Product Cost6', 'value' => $stock->total_jpy_cost_6, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_usd_cost_6', 'label' => 'USD Product Cost6', 'value' => $stock->total_usd_cost_6, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'number', 'name' => 'stock_count_6', 'value' => $stock->stock_count_6, 'label' => 'StockCount 6', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type'=>'toggle', 'name' => 'stock_6_status', 'value' => $stock->stock_6_status ==1 ?'ON':'OFF', 'label' => 'Status 6', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'expire_date_7', 'value' => $stock->expire_date_7, 'label' => 'Expire Date 7', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_krw_cost_7', 'label' => 'KRW Product Cost7', 'value' => $stock-> total_krw_cost_7, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_jpy_cost_7', 'label' => 'JPY Product Cost7', 'value' => $stock->total_jpy_cost_7, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_usd_cost_7', 'label' => 'USD Product Cost7', 'value' => $stock->total_usd_cost_7, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'number', 'name' => 'stock_count_7', 'value' => $stock->stock_count_7, 'label' => 'StockCount 7', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type'=>'toggle', 'name' => 'stock_7_status', 'value' => $stock->stock_7_status ==1 ?'ON':'OFF', 'label' => 'Status 7', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'expire_date_8', 'value' => $stock->expire_date_8, 'label' => 'Expire Date 8', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_krw_cost_8', 'label' => 'KRW Product Cost8', 'value' => $stock-> total_krw_cost_8, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_jpy_cost_8', 'label' => 'JPY Product Cost8', 'value' => $stock->total_jpy_cost_8, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_usd_cost_8', 'label' => 'USD Product Cost8', 'value' => $stock->total_usd_cost_8, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'number', 'name' => 'stock_count_8', 'value' => $stock->stock_count_8, 'label' => 'StockCount 8', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type'=>'toggle', 'name' => 'stock_8_status', 'value' => $stock->stock_8_status ==1 ?'ON':'OFF', 'label' => 'Status 8', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'expire_date_9', 'value' => $stock->expire_date_9, 'label' => 'Expire Date 9', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_krw_cost_9', 'label' => 'KRW Product Cost9', 'value' => $stock-> total_krw_cost_9, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_jpy_cost_9', 'label' => 'JPY Product Cost9', 'value' => $stock->total_jpy_cost_9, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_usd_cost_9', 'label' => 'USD Product Cost9', 'value' => $stock->total_usd_cost_9, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'number', 'name' => 'stock_count_9', 'value' => $stock->stock_count_9, 'label' => 'StockCount 9', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type'=>'toggle', 'name' => 'stock_9_status', 'value' => $stock->stock_9_status ==1 ?'ON':'OFF', 'label' => 'Status 9', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'expire_date_10', 'value' => $stock->expire_date_10, 'label' => 'Expire Date 10', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_krw_cost_10', 'label' => 'KRW Product Cost10', 'value' => $stock-> total_krw_cost_10, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_jpy_cost_10', 'label' => 'JPY Product Cost10', 'value' => $stock->total_jpy_cost_10, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'total_usd_cost_10', 'label' => 'USD Product Cost10', 'value' => $stock->total_usd_cost_10, 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type' => 'number', 'name' => 'stock_count_10', 'value' => $stock->stock_count_10, 'label' => 'StockCount 10', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], [ 'type' => 'input', 'input_type'=>'toggle', 'name' => 'stock_10_status', 'value' => $stock->stock_10_status ==1 ?'ON':'OFF', 'label' => 'Status 10', 'field_class' =>'col-md-2 col-sm-2 col-lg-2' ], ]; @endphp