Laravel 8

CoffeeShop Inventory System using Laravel 8

The CoffeeShop  pos system is developed using Laravel 8. The project is built to manage sales and transactions. To make a new transaction, fields such as: Rice type and Drink type, qty needs to be selected. If you like to learn point of sales systems step by step, this is the right place to learn from the beginning. In this tutorial useful for making a point of sales system for a small shops.

The system shall be able to select the relevant Rice type and Drink type.

First Step Create the Laravel 8 Project

composer create-project --prefer-dist laravel/laravel coffeepos

after project has been created you have to create index.blade.php page inside the views folder. paste the following code.

<html>
<head>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>


</head>
<body>

<nav class="navbar navbar-dark bg-dark">

    <span class="navbar-brand md-0 h1">Coffee Shop Pos</span>

</nav>
<div class="row">

    <div class="col-sm-3">
        <div class="container">
            <div class="list-group-item list-group-tem-action active">Item</div>

            <div class="panel-body bg-dark" style="color: white">
                <form id="tbl-project">
                    <table class="table table-bordered" style="color: white">

                        <tr>
                            <td>
                                <input type="checkbox" name="pos" value="Nuggets Fries">
                                <label>Nuggets Fries</label>
                            </td>

                            <td> <input type="number" name="qty" id="qty"></td>
                        </tr>

                        <tr>
                            <td>
                                <input type="checkbox" name="pos" value="Village Fries">
                                <label>Village Fries</label>
                            </td>

                            <td> <input type="number" name="qty" id="qty"></td>
                        </tr>

                        <tr>
                            <td>
                                <input type="checkbox" name="pos" value="Fries">
                                <label>Fries</label>
                            </td>

                            <td> <input type="number" name="qty" id="qty"></td>
                        </tr>


                    </table>


                </form>
            </div>




        </div>


    </div>

    <div class="col-sm-3">
        <div class="container">
            <div class="list-group-item list-group-tem-action active">Drinks</div>

            <div class="panel-body bg-dark" style="color: white">
                <form id="tbl-project">
                    <table class="table table-bordered" style="color: white">

                        <tr>
                            <td>
                                <input type="checkbox" name="pos" value="Tea">
                                <label>Tea</label>
                            </td>

                            <td> <input type="number" name="qty" id="qty"></td>
                        </tr>

                        <tr>
                            <td>
                                <input type="checkbox" name="pos" value="Coffee">
                                <label>Coffee</label>
                            </td>

                            <td> <input type="number" name="qty" id="qty"></td>
                        </tr>

                        <tr>
                            <td>
                                <input type="checkbox" name="pos" value="Apple Juice">
                                <label>Apple Juice</label>
                            </td>

                            <td> <input type="number" name="qty" id="qty"></td>
                        </tr>

                        <tr>
                            <td>
                                <input type="checkbox" name="pos" value="Orange Juice">
                                <label>Orange Juice</label>
                            </td>

                            <td> <input type="number" name="qty" id="qty"></td>
                        </tr>

                        <tr>
                            <td colspan="3" align="right">

                                <input type="button" class="btn btn-info"  value="Add" >




after that you have to create the controller

php artisan make:controller CoffeeshopController

after created the controller paste the following code

<?php

namespace App\Http\Controllers;
use Illuminate\Http\Request;

class CoffeeshopController extends Controller
{
    public function Index
    {
        return view('index');
    }

}

after that go route folder inside folder there is page name web.php. you have to change the Route i shown in below.

change as index. then only it will return to index page when page is loaded for the first time.

Route::get('/', function () {
    return view('index');
});

now you can run the project

php artisan serve

i have attached the video link below. which will do this tutorials step by step.

 

admin

Recent Posts

ChatGPT Free Online Download the ChatGPT App Easily

Have you ever wanted to talk to a friendly, smart robot that helps you with…

2 days ago

Free GPT Chat? DeepSeek AI Does It Better

DeepSeek AI is becoming a friendly and powerful new tool in the world of artificial…

2 weeks ago

Spring Boot MySQL Complete CRUD REST API [ Free Sourecode ]

Do you want to become an expert in Spring Boot CRUD operations? This comprehensive tutorial…

2 weeks ago

CREATE Responsive Navigation Bar with FlexBox CSS!

Modern websites must have a navigation bar that is clear and responsive. FlexBox CSS is…

4 weeks ago

Registration with image upload Java Jdbc(Download Source code)

Introduction In this section, we will guide you step by step in the development of an image upload registration system in Java using MySQL and JDBC. In the application, users register…

2 months ago

Touchable shop Pos system using Java

The Touchable Shop POS (Point of Sale) system is a sophisticated software solution developed using…

3 months ago