Serial Numbers Controller (Products/SerialNumbersController.php)

WebErpMesv2 · app/Http/Controllers/Products/SerialNumbersController.php · php · LGPL-3.0
crm, pos, integration, fw:laravel, tag:serial-numbers, tag:erp

Laravel controller managing product serial number inventory with status tracking for sold, shipped, and in-stock items.

// Source: https://github.com/SMEWebify/WebErpMesv2 | License: LGPL-3.0 | Modified files must remain under LGPL-3.0
// Modifications to this file must remain under LGPL-3.0.
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace App\Http\Controllers\Products;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Products\SerialNumbers;

class SerialNumbersController extends Controller
{
    /**
     * @return \Illuminate\Contracts\View\View
     */
    public function index()
    {
        $totalCount   = SerialNumbers::count();
        $soldCount    = SerialNumbers::where('status', 2)->count();
        $shippedCount = SerialNumbers::where('status', 3)->count();
        $inStockCount = SerialNumbers::where('status', 5)->count();

     

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

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

Get a free API key