@extends('layouts.master') @section('header') @endsection @php use Illuminate\Support\Facades\DB; $MasterItems = DB::table('tmstmproduct'); if (isset($WhereType) && isset($ValueWhere) && isset($operator)) { $MasterItems->where($WhereType, $operator, $ValueWhere); } if (isset($FullJoin) && $FullJoin == true) { $MasterItems = $MasterItems ->join('tmseason', 'tmstmproduct.XISeasonCode', '.tmseason.XISeasonCode') ->join('tmforuse', 'tmstmproduct.XIForCode', '.tmforuse.XIForCode') ->join('tmgenerate', 'tmstmproduct.XIGenerateCode', '.tmgenerate.XIGenerateCode') ->join('tmshape', 'tmstmproduct.XIShapeCode', '.tmshape.XIShapeCode') ->join('tmstmmaterial', 'tmstmproduct.xvmatcode', '.tmstmmaterial.xvmatcode'); } $MasterItems = $MasterItems ->orderBy('xvpdtcode', 'asc') ->get() ->toArray(); foreach ($MasterItems as $item) { $item->size = DB::table('tmstmproductsize') ->where('xvpdtcode', '=', $item->xvpdtcode) ->get() ->toArray(); } @endphp @section('content')
รายงานสินค้าคงคลัง

เงื่อนไขในการเลือก
สินค้า
ทั้งหมด

จาก

ถึง

@endsection