@php $th = 'width: 200px;background-color: #337ab7;color:white;font-family: Times New Roman;font-size:14px !important;font-weight: bold;padding:100px'; $font = array( 0=>';font-family:Battambang;font-size:10px;', 1=>';font-family:Times New Roman;font-size:12px;' ); @endphp @switch($type) @case("product") @foreach($data->cursor() as $val) @if ($loop->iteration % 2 == 0) @endif @endforeach
Type Name Item Code Category Brand Size Show on POS For Promotion Unit UOM Cost Price
{{@$val->item->type}} {{@$val->item->name}} {{@$val->item->item_code}} {{@$val->item->category->name}} {{@$val->item->brand->name}} {{@$val->item->size->name}} {{@$val->item->show_on_pos?"show":"hide"}} {{@$val->item->for_promotion?"yes":"no"}} {{@$val->unit->name}} {{@$val->uom}} {{@$val->cost}} {{@$val->price}}
@break @case("service") @foreach ($data->cursor() as $item) @foreach ($item->itemMaterial as $material) @if ($loop->iteration % 2 == 0) @endif @endforeach @endforeach
Service Name Service Code Service Unit Material Name Material Unit Material Qty Material Wastage Material Usable Material PO Weight Material Cost Material Note
{{@$item->item->name}} {{@$item->item->item_code}} {{@$item->unit->name}} {{@$material->item->name}} {{@$material->unit->name}} {{@$material->qty}} {{@$material->wastage}} {{@$material->usable}} {{@$material->purchase_weight}} {{@$material->total_cost}} {{@$material->note}}
@break @default @endswitch