CASHIER REPORT
Print Date: {{ \Carbon::now()->format('m/d/Y') }}
Print Time: {{ \Carbon::now()->format('h:i A') }}
| Transaction ID | '; $html .= 'Time | '; if ($isExpense) { $html .= 'Description | '; $html .= 'Total Amount | '; } else { $html .= 'Customer | '; $html .= 'User | '; $html .= 'Quantity | '; $html .= 'Total Amount | '; } $html .= '||
|---|---|---|---|---|---|---|---|---|---|
| ' . (!empty($item->invoice_no) ? $item->invoice_no : $item->ref_no) . ' | '; $html .= '' . \Carbon::parse($item->time)->format('H:i:s') . ' | '; if ($isExpense) { // For expenses, title logic uses category_name or description $desc = !empty($item->category_name) ? $item->category_name : $item->description; $html .= '' . $desc . ' | '; $html .= '' . app('App\Utils\Util')->num_f($item->total_amount, true) . ' | '; } else { $html .= '' . $item->customer_name . ' | '; $html .= '' . $item->user_name . ' | '; $html .= '' . number_format($item->total_quantity, 0) . ' | '; $html .= '' . app('App\Utils\Util')->num_f($item->total_amount, true) . ' | '; } $html .= '||
| '; $html .= ' | ' . app('App\Utils\Util')->num_f($total_amount, true) . ' | '; } else { $html .= ''; $html .= ' | ' . number_format($total_qty, 0) . ' | '; $html .= '' . app('App\Utils\Util')->num_f($total_amount, true) . ' | '; } $html .= '|||||