Commit 2b348a20 authored by Anggakara Purwanung's avatar Anggakara Purwanung
Browse files

update cashier Dashboard

No related merge requests found
Showing with 13480 additions and 1759 deletions
+13480 -1759
......@@ -11,7 +11,7 @@ LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_DATABASE=gotoko
DB_USERNAME=root
DB_PASSWORD=
......@@ -50,3 +50,7 @@ PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
GOOGLE_CLIENT_ID=342322140295-a87chkbaipbkomgln5be5d4k1itbdi83.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=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
GOOGLE_REDIRECT=http://127.0.0.1:8000/login/google/callback
......@@ -12,4 +12,5 @@ public function index()
{
return view('page.cashier.index');
}
}
<?php
namespace App\View\Components;
use Illuminate\View\Component;
class AppLayout extends Component
{
/**
* Create a new component instance.
*
* @return void
*/
public $title;
public function __construct($title = null)
{
$this->title = $title ?? config('app.name');
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
//return view('components.app-layout');
return view('layout.app');
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html>
<html lang="en">
<head>
@include('layout.partials.head')
</head>
@if (!Route::is(['error-404', 'error-500']))
<body>
@endif
@if (Route::is(['error-404', 'error-500']))
<body class="error-page">
@endif
@if (Route::is(['forgetpassword', 'resetpassword', 'signin', 'signup', 'get-login-cashier', 'owner.sales.pos.index']))
<body class="account-page">
@endif
@include('layout.partials.loader')
<!-- Main Wrapper -->
<div class="main-wrapper">
@if (
!Route::is([
'error-404',
'error-500',
'forgetpassword',
'pos',
'resetpassword',
'signin',
'signup',
'login',
'get-login-cashier',
'owner.sales.pos.index',
]))
@include('layout.partials.header')
{{-- @include('layout.partials.sidebar') --}}
@endif
@yield('content')
</div>
<!-- /Main Wrapper -->
@include('layout.partials.footer-scripts')
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<head>
@include('layout.partials.head')
</head>
@if(!Route::is(['error-404','error-500']))
<body>
@endif
@if(Route::is(['error-404','error-500']))
<body class="error-page">
@endif
@if(Route::is(['forgetpassword','resetpassword','signin','signup', 'get-login-cashier', 'owner.sales.pos.index']))
<body class="account-page">
@endif
</head>
@if (!Route::is(['error-404', 'error-500']))
<body>
@endif
@if (Route::is(['error-404', 'error-500']))
<body class="error-page">
@endif
@if (Route::is(['forgetpassword', 'resetpassword', 'signin', 'signup', 'get-login-cashier', 'owner.sales.pos.index']))
<body class="account-page">
@endif
@include('layout.partials.loader')
<!-- Main Wrapper -->
<!-- Main Wrapper -->
<div class="main-wrapper">
@if(!Route::is(['error-404','error-500','forgetpassword','pos','resetpassword','signin','signup', 'login', 'get-login-cashier', 'owner.sales.pos.index']))
@include('layout.partials.header')
@include('layout.partials.sidebar')
@endif
@if (
!Route::is([
'error-404',
'error-500',
'forgetpassword',
'pos',
'resetpassword',
'signin',
'signup',
'login',
'get-login-cashier',
'owner.sales.pos.index',
]))
@include('layout.partials.header')
@include('layout.partials.sidebar')
@endif
@yield('content')
</div>
</div>
<!-- /Main Wrapper -->
@include('layout.partials.footer-scripts')
</body>
</html>
\ No newline at end of file
@include('layout.partials.footer-scripts')
</body>
</html>
This diff is collapsed.
......@@ -22,10 +22,9 @@
Route::get('/login/google/callback', [LoginController::class, 'handleGoogleCallback'])->name('login.google.callback');
Route::post('/logout', [LoginController::class, 'logout'])->name('logout');
Route::get('/login/cashier', function(){
return view('page.auth.cashier-signin');
})->middleware('web')->name('get-login-cashier');
Route::get('/login/cashier', function(){return view('page.auth.cashier-signin');})->middleware('web')->name('get-login-cashier');
Route::post('/login/cashier', [LoginController::class, 'loginCashier'])->middleware('web')->name('login-cashier');
//Route::get('/cashier/dashboard', );
// Route::get('/dashboard', [DashboardController::class, 'index'])->middleware('auth')->name('dashboard');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment