@extends('layouts.main') @section('title', 'BookStock View - ' . $Distributormaster->distributor_name) @section('container') @php $rack_get = 0; $rack_get_count = 0; @endphp
| Sr. No. | Action | @php $j = 1; $appgetdefalt = App\Models\rack_entry::where("distributor_id",$Distributormaster->id)->count(); $appget = App\Models\Rack_id_templete::where("distributor_id",$Distributormaster->id)->count(); @endphp @if($appgetdefalt > 0) @php $columns = [ "Item_SKU_Code" => "Item/SKU Code", "Item_Name" => "Item Name", "EAN_Code" => "EAN Code", "Pack_Size" => "Pack Size", "item_type" => "Item Type", "item_sub_type" => "Item Sub Type", "brand" => "Brand", "uom" => "UOM", "batch_number" => "Batch Number", "item_mrp" => "Item MRP", "item_rate" => "Item Rate", "item_qty" => "Item Quantity", "value" => "Value", "field_1" => "Field 1", "field_2" => "Field 2", "field_3" => "Field 3", "field_4" => "Field 4", "field_5" => "Field 5", "date" => "Date", "a_remarks" => "Remarks", "auditor_names" => "Auditor names", "rack" => "Rack ID", "barcode_value" => "Count", ]; $rack_get_count = 1; @endphp @elseif($appget > 0) @php $columns = [ "Item_SKU_Code" => "Item/SKU Code", "Item_Name" => "Item Name", "EAN_Code" => "EAN Code", "Pack_Size" => "Pack Size", "item_type" => "Item Type", "item_sub_type" => "Item Sub Type", "brand" => "Brand", "uom" => "UOM", "batch_number" => "Batch Number", "item_mrp" => "Item MRP", "item_rate" => "Item Rate", "item_qty" => "Item Quantity", "value" => "Value", "field_1" => "Field 1", "field_2" => "Field 2", "field_3" => "Field 3", "field_4" => "Field 4", "field_5" => "Field 5", "date" => "Date", "a_remarks" => "Remarks", "auditor_names" => "Auditor names", "rack" => "Rack ID" ]; $rack_get = 1; @endphp @else @php $columns = [ "Item_SKU_Code" => "Item/SKU Code", "Item_Name" => "Item Name", "EAN_Code" => "EAN Code", "Pack_Size" => "Pack Size", "item_type" => "Item Type", "item_sub_type" => "Item Sub Type", "brand" => "Brand", "uom" => "UOM", "batch_number" => "Batch Number", "item_mrp" => "Item MRP", "item_rate" => "Item Rate", "item_qty" => "Item Quantity", "value" => "Value", "field_1" => "Field 1", "field_2" => "Field 2", "field_3" => "Field 3", "field_4" => "Field 4", "field_5" => "Field 5", "date" => "Date", "a_remarks" => "Remarks", "auditor_names" => "Auditor names" ]; @endphp @endif @foreach($columns as $key => $label){{ $label }} | @endforeach @if($rack_get_count == 0) @foreach($qu_templete as $row){{ Str::limit($row->question_text, 20, '...') }} | @endforeach @endif
|---|