POSController.php

InfoShop · pos

Handles POS checkout, product filtering, sale processing, and returns.

// Source: https://github.com/NifrasUsanar/InfoShop | License: MIT | Copyright 2025 Nifras Usanar
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace App\Http\Controllers;

use App\Models\CashLog;
use App\Models\Collection;
use Illuminate\Http\Request;
use Inertia\Inertia;
use App\Models\Sale;
use App\Models\SaleItem;
use App\Models\Transaction;
use App\Models\Contact;
use App\Models\ProductStock;
use App\Models\Product;
use App\Models\Store;
use App\Models\ReloadAndBillMeta;
use App\Services\ReceiptDataService;
use App\Models\Setting;
use App\Notifications\SaleCreated;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Storage;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;

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

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

Get a free API key