/
home
/
sjslayjy
/
public_html
/
assets
/
resources
/
views
/
exports
/
Upload File
HOME
<table> <thead> <tr> <th>SNo</th> <th>Item Code</th> <th>Item Description</th> <th>HSN Code</th> <th>Ware House </th> <th>Zone</th> @if($user_type == 2) <th>Site Eng. Id</th> <th>Site Eng. Name</th> @endif <th>Engg. Name </th> <th>Bin</th> <th>Qty</th> <th>Value</th> <th>UOM</th> <th>Item Type</th> </tr> </thead> <tbody> @foreach($stocks as $key => $stock) <tr> <td>{{$key+1}}</td> <td>{{$stock->spare_code}}</td> <td>{{$stock->description}}</td> <td>{{$stock->hsn}}</td> <td>{{$stock->warehouse}}</td> <td>@if($stock->zone == 'ENG') {{$stock->engineer_id}} @else {{strtoupper($stock->zone)}} @endif</td> @if($user_type == 2) <td>{{$stock->Eng_code ?? ''}}</td> <td>{{$stock->eng_name ?? ''}}</td> @endif <td>@if($stock->zone == 'PT') PULL THROUGH @elseif( $stock->zone == 'TRC') REPAIRED ITEMS @elseif( $stock->zone == 'ENG') {{$stock->StaffName}} @else {{strtoupper($stock->item_type)}} SPARES ZONE @endif</td> @if(in_array($stock->warehouse, ["SERJNK","SERHMP","SERDEL","SERDel","SERPJB","SERUPE","SUPPNT","SERBHR","SERNOE","SERASM","SERWBL","SERORI","SERMPD","SERMAH","SERKTK","SERKRL","SERTMN","SERTGN","SERUPW","SERAPD","SERJHR","INDIMEBAY","INDIMENND","INDIMEBAT","INDIMEASR","INDIMEPTL","INDIMEFZP","INDIMEHSP","SERPNT", "SUPPNT", "SERHAR", "SERRAJ","TNLO&MDEL","ATCO&MDEL","TVIO&MDEL"])) <td>{{strtoupper($stock->item_type)}}</td> @elseif($stock->warehouse == "Scrap Zone") <td>{{$stock->scrap_bin}}</td> @else <td></td> @endif <td>{{$stock->qty}}</td> <td>{{ number_format($stock->total_value, 2) }}</td> <td>{{$stock->uom}}</td> <td>{{$stock->type}}</td> </tr> @endforeach </tbody> </table>