Receipt/Nota Printer

tutorial-membuat-aplikasi-point-of-sales · ui, receipt-printing, thermal-printer, nota-formats, pos

Prints sales receipts in multiple formats (large/thermal) with customizable nota types, adaptable for any retail system.

// Source: https://github.com/nursandiid/tutorial-membuat-aplikasi-point-of-sales | License: MIT | Copyright 2021 Nursandi - W2Learn
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace App\Http\Controllers;

use App\Models\Penjualan;
use App\Models\PenjualanDetail;
use App\Models\Produk;
use App\Models\Setting;
use Illuminate\Http\Request;
use PDF;

class PenjualanController extends Controller
{
    public function index()
    {
        return view('penjualan.index');
    }

    public function data()
    {
        $penjualan = Penjualan::with('member')->orderBy('id_penjualan', 'desc')->get();

        return datatables()
            ->of($penjualan)
            ->addIndexColumn()
            ->addColumn('total_item', function ($penjualan) {
                re

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key