Application de gestion d'un restaurant ب laravel الجزء الثامن

imadbelasri Laravel
LA

فهاد الجزء الثامن من Application de gestion d'un restaurant ب laravel غادي نزيدو آخر حاجة بقاتنا هي les routes وغادي نزيدو الصفحة ديال الترحيب بالمستخدم ديالنا.


نظرة سريعة بالفيديو


1- إضافة les routes

ف dossier routes كاين fichier web.php فيه غادي نزيدو les routes ديالنا.

الكود لي غادي تزيد فالملف هو :

                                                    
                                                        <?php

use Illuminate\Support\Facades\Route;


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

Auth::routes(["register" => false, "reset" => false]);

Route::get('/home', 'HomeController@index')->name('home');
Route::resource('categories', 'CategoryController');
Route::resource('tables', 'TableController');
Route::resource('servants', 'ServantsController');
Route::resource('menus', 'MenuController');
Route::get('payments', 'PaymentController@index')->name("payments.index");
Route::resource('sales', 'SalesController');
Route::get('reports', 'ReportController@index')->name("reports.index");
Route::post('reports/generate', 'ReportController@generate')->name("reports.generate");
Route::post('reports/export', 'ReportController@export')->name("reports.export");
                                                    
                                                

2- إضافة صفحة الترحيب

ف dossier views كاين الملف welcome.blade.php غادي نديرو عليه تعديلات ف xxxxxx بدلها بإسم resto لي بغيتي.

الكود لي غادي تزيد فيه هو :

                                                        
                                                            <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Laravel</title>

        <!-- Fonts -->
        <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@200;600&display=swap" rel="stylesheet">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==" crossorigin="anonymous" />

        <!-- Styles -->
        <style>
            html, body {
                background-color: #fff;
                color: #636b6f;
                font-family: 'Nunito', sans-serif;
                font-weight: 200;
                height: 100vh;
                margin: 0;
            }

            .full-height {
                height: 100vh;
            }

            .flex-center {
                align-items: center;
                display: flex;
                justify-content: center;
            }

            .position-ref {
                position: relative;
            }

            .top-right {
                position: absolute;
                right: 10px;
                top: 18px;
            }

            .content {
                text-align: center;
            }

            .title {
                font-size: 84px;
            }

            .links > a {
                color: #636b6f;
                padding: 0 25px;
                font-size: 13px;
                font-weight: 600;
                letter-spacing: .1rem;
                text-decoration: none;
                text-transform: uppercase;
            }

            .m-b-md {
                margin-bottom: 30px;
            }
        </style>
    </head>
    <body>
        <div class="flex-center position-ref full-height">
            @if (Route::has('login'))
                <div class="top-right links">
                    @auth
                        <a href="{{ url('/home') }}">Accueil</a>
                    @else
                        <a href="{{ route('login') }}">Connexion</a>
                    @endauth
                </div>
            @endif

            <div class="content">
                <div class="title m-b-md">
                   <i class="fas fa-hamburger"></i> Restaurant XXXXX
                </div>
            </div>
        </div>
    </body>
</html>
                                                        
                                                    

دروس ذات صلة

LA

Application de gestion d'un restaurant ب laravel الجزء الأول

فهاد ال projet الجديد غادي نشوفوا كيفاش نقادو une application de gestion d'un restaurant ب laravel ف...


LA

Application de gestion d'un restaurant ب laravel الجزء الثاني

فهاد الجزء الثاني من une application de gestion d'un restaurant ب laravel غادي نكملوا ونزيدو les tab...


LA

Application de gestion d'un restaurant ب laravel الجزء الثالت

فهاد الجزء الثالت من une application de gestion d'un restaurant ب laravel غادي نكملوا ونزيدو les ven...


LA

Application de gestion d'un restaurant ب laravel الجزء الرابع

فهاد الجزء الرابع من Application de gestion d'un restaurant ب laravel غادي نكملوا وندوزو لعرض l...


LA

Application de gestion d'un restaurant ب laravel الجزء الخامس

فهاد الجزء الخامس من Application de gestion d'un restaurant ب laravel غادي نكملوا وندوزو لعرض l...


LA

Application de gestion d'un restaurant ب laravel الجزء السادس

فهاد الجزء السادس من Application de gestion d'un restaurant ب laravel غادي نكملوا وندوزو لعرض les ve...


LA

Application de gestion d'un restaurant ب laravel الجزء السابع

فهاد الجزء السابع من Application de gestion d'un restaurant ب laravel غادي ندوزوا نشوفوا كيفاش...