├── public ├── favicon.ico ├── robots.txt ├── vendor │ ├── adminlte │ │ └── dist │ │ │ └── img │ │ │ └── AdminLTELogo.png │ ├── fontawesome-free │ │ ├── webfonts │ │ │ ├── fa-solid-900.eot │ │ │ ├── fa-solid-900.ttf │ │ │ ├── fa-brands-400.eot │ │ │ ├── fa-brands-400.ttf │ │ │ ├── fa-brands-400.woff │ │ │ ├── fa-brands-400.woff2 │ │ │ ├── fa-regular-400.eot │ │ │ ├── fa-regular-400.ttf │ │ │ ├── fa-regular-400.woff │ │ │ ├── fa-solid-900.woff │ │ │ ├── fa-solid-900.woff2 │ │ │ └── fa-regular-400.woff2 │ │ └── css │ │ │ ├── solid.min.css │ │ │ ├── brands.min.css │ │ │ ├── regular.min.css │ │ │ ├── brands.css │ │ │ ├── solid.css │ │ │ └── regular.css │ └── popper │ │ └── umd │ │ └── popper.js.flow ├── .htaccess ├── web.config └── index.php ├── resources ├── sass │ └── app.scss ├── js │ ├── app.js │ └── bootstrap.js ├── views │ ├── auth │ │ ├── login.blade.php │ │ ├── verify.blade.php │ │ ├── register.blade.php │ │ └── passwords │ │ │ ├── email.blade.php │ │ │ ├── reset.blade.php │ │ │ └── confirm.blade.php │ ├── vendor │ │ └── adminlte │ │ │ ├── partials │ │ │ ├── footer │ │ │ │ └── footer.blade.php │ │ │ ├── sidebar │ │ │ │ ├── right-sidebar.blade.php │ │ │ │ ├── menu-item-header.blade.php │ │ │ │ ├── menu-item.blade.php │ │ │ │ ├── menu-item-search-form.blade.php │ │ │ │ ├── menu-item-link.blade.php │ │ │ │ ├── menu-item-treeview-menu.blade.php │ │ │ │ └── left-sidebar.blade.php │ │ │ ├── navbar │ │ │ │ ├── dropdown-item.blade.php │ │ │ │ ├── menu-item.blade.php │ │ │ │ ├── menu-item-search-form.blade.php │ │ │ │ ├── menu-item-left-sidebar-toggler.blade.php │ │ │ │ ├── menu-item-right-sidebar-toggler.blade.php │ │ │ │ ├── dropdown-item-link.blade.php │ │ │ │ ├── menu-item-logout-link.blade.php │ │ │ │ ├── menu-item-link.blade.php │ │ │ │ ├── menu-item-dropdown-menu.blade.php │ │ │ │ ├── dropdown-item-submenu.blade.php │ │ │ │ ├── navbar.blade.php │ │ │ │ ├── navbar-layout-topnav.blade.php │ │ │ │ └── menu-item-dropdown-user-menu.blade.php │ │ │ └── common │ │ │ │ ├── brand-logo-xl.blade.php │ │ │ │ └── brand-logo-xs.blade.php │ │ │ ├── plugins.blade.php │ │ │ ├── auth │ │ │ ├── verify.blade.php │ │ │ ├── passwords │ │ │ │ ├── email.blade.php │ │ │ │ ├── confirm.blade.php │ │ │ │ └── reset.blade.php │ │ │ └── auth-page.blade.php │ │ │ └── page.blade.php │ ├── dashboard.blade.php │ ├── website │ │ ├── seller │ │ │ ├── layouts │ │ │ │ └── menu.blade.php │ │ │ ├── dashboard.blade.php │ │ │ └── login.blade.php │ │ ├── index.blade.php │ │ ├── master.blade.php │ │ └── layouts │ │ │ └── navbar.blade.php │ ├── welcome.blade.php │ └── layouts │ │ └── app.blade.php └── lang │ ├── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php │ └── vendor │ └── adminlte │ ├── zh-CN │ ├── menu.php │ └── adminlte.php │ ├── ja │ ├── menu.php │ └── adminlte.php │ ├── tr │ ├── menu.php │ └── adminlte.php │ ├── vi │ ├── menu.php │ └── adminlte.php │ ├── en │ ├── menu.php │ └── adminlte.php │ ├── id │ ├── menu.php │ └── adminlte.php │ ├── de │ ├── menu.php │ └── adminlte.php │ ├── pt-br │ ├── menu.php │ └── adminlte.php │ ├── ru │ ├── menu.php │ └── adminlte.php │ ├── uk │ ├── menu.php │ └── adminlte.php │ ├── es │ ├── menu.php │ └── adminlte.php │ ├── hr │ └── adminlte.php │ ├── fa │ └── adminlte.php │ ├── pl │ └── adminlte.php │ ├── hu │ └── adminlte.php │ ├── ar │ └── adminlte.php │ ├── it │ └── adminlte.php │ ├── ca │ └── adminlte.php │ ├── nl │ └── adminlte.php │ └── fr │ └── adminlte.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── database ├── .gitignore ├── seeds │ └── DatabaseSeeder.php ├── migrations │ ├── 2020_10_22_170408_create_provinces_table.php │ ├── 2020_10_30_134314_create_category_products_table.php │ ├── 2020_10_28_082032_create_category_sellers_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2020_10_28_081602_create_districts_table.php │ ├── 2020_10_28_081655_create_villages_table.php │ ├── 2020_10_28_081459_create_regencies_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2020_10_28_120305_add_remember_token_to_sellers_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2020_10_30_134416_create_products_table.php │ └── 2020_10_28_082106_create_sellers_table.php └── factories │ └── UserFactory.php ├── .gitattributes ├── app ├── District.php ├── Province.php ├── Regency.php ├── Village.php ├── Http │ ├── Controllers │ │ ├── LandingpageController.php │ │ ├── Controller.php │ │ ├── Seller │ │ │ ├── DashboardController.php │ │ │ ├── LoginController.php │ │ │ ├── RegisterController.php │ │ │ └── ProductController.php │ │ ├── HomeController.php │ │ ├── LoginController.php │ │ └── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── ResetPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── VerificationController.php │ │ │ └── RegisterController.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── TrimStrings.php │ │ ├── Authenticate.php │ │ ├── RedirectIfAuthenticated.php │ │ └── TrustProxies.php │ ├── Requests │ │ └── ProductRequest.php │ └── Kernel.php ├── CategorySeller.php ├── CategoryProduct.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AuthServiceProvider.php │ ├── AppServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── User.php ├── Seller.php ├── Console │ └── Kernel.php ├── Product.php └── Exceptions │ └── Handler.php ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── .gitignore ├── .styleci.yml ├── .editorconfig ├── README.md ├── webpack.mix.js ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── server.php ├── config ├── cors.php ├── services.php ├── view.php ├── hashing.php ├── broadcasting.php ├── filesystems.php ├── queue.php ├── logging.php ├── cache.php └── mail.php ├── .env.example ├── package.json ├── phpunit.xml ├── artisan └── composer.json /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | require('./bootstrap'); 2 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | *.sqlite-journal 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::auth.login') -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /resources/views/auth/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::auth.verify') -------------------------------------------------------------------------------- /resources/views/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::auth.register') -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::auth.passwords.email') -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::auth.passwords.reset') -------------------------------------------------------------------------------- /resources/views/auth/passwords/confirm.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::auth.passwords.confirm') -------------------------------------------------------------------------------- /resources/views/vendor/adminlte/partials/footer/footer.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/img/AdminLTELogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ir001/laravel-toko-online-whatsapp/HEAD/public/vendor/adminlte/dist/img/AdminLTELogo.png -------------------------------------------------------------------------------- /app/District.php: -------------------------------------------------------------------------------- 1 | 2 | @yield('right-sidebar') 3 | 4 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{ is_string($item) ? $item : $item['header'] }} 4 | 5 | -------------------------------------------------------------------------------- /app/Http/Controllers/LandingpageController.php: -------------------------------------------------------------------------------- 1 | Dashboard 7 | @stop 8 | 9 | @section('content') 10 |
Welcome to this beautiful admin panel.
11 | @stop 12 | 13 | @section('css') 14 | @stop 15 | 16 | @section('js') 17 | 18 | @stop 19 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/Unit/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/CategorySeller.php: -------------------------------------------------------------------------------- 1 | hasMany('App\Seller'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/CategoryProduct.php: -------------------------------------------------------------------------------- 1 | hasMany('App\Product'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | middleware('auth:seller'); 13 | } 14 | public function index(){ 15 | return view('website.seller.dashboard'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /resources/views/vendor/adminlte/partials/navbar/dropdown-item.blade.php: -------------------------------------------------------------------------------- 1 | @inject('menuItemHelper', \JeroenNoten\LaravelAdminLte\Helpers\MenuItemHelper) 2 | 3 | @if ($menuItemHelper->isSubmenu($item)) 4 | 5 | {{-- Dropdown submenu --}} 6 | @include('adminlte::partials.navbar.dropdown-item-submenu') 7 | 8 | @elseif ($menuItemHelper->isLink($item)) 9 | 10 | {{-- Dropdown link --}} 11 | @include('adminlte::partials.navbar.dropdown-item-link') 12 | 13 | @endif 14 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/js/app.js', 'public/js') 15 | .sass('resources/sass/app.scss', 'public/css'); 16 | -------------------------------------------------------------------------------- /resources/views/vendor/adminlte/partials/navbar/menu-item.blade.php: -------------------------------------------------------------------------------- 1 | @inject('menuItemHelper', \JeroenNoten\LaravelAdminLte\Helpers\MenuItemHelper) 2 | 3 | @if ($menuItemHelper->isSearchBar($item)) 4 | 5 | {{-- Search form --}} 6 | @include('adminlte::partials.navbar.menu-item-search-form') 7 | 8 | @elseif ($menuItemHelper->isSubmenu($item)) 9 | 10 | {{-- Dropdown menu --}} 11 | @include('adminlte::partials.navbar.menu-item-dropdown-menu') 12 | 13 | @elseif ($menuItemHelper->isLink($item)) 14 | 15 | {{-- Link --}} 16 | @include('adminlte::partials.navbar.menu-item-link') 17 | 18 | @endif 19 | -------------------------------------------------------------------------------- /app/Http/Controllers/HomeController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 17 | } 18 | 19 | /** 20 | * Show the application dashboard. 21 | * 22 | * @return \Illuminate\Contracts\Support\Renderable 23 | */ 24 | public function index() 25 | { 26 | return view('dashboard'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Controllers/LoginController.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /resources/views/website/seller/layouts/menu.blade.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 18 | return $request->user(); 19 | }); 20 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /resources/views/vendor/adminlte/partials/navbar/menu-item-search-form.blade.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->describe('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 |12 | {{ $item['text'] }} 13 | 14 | @if(isset($item['label'])) 15 | 16 | {{ $item['label'] }} 17 | 18 | @endif 19 |
20 | 21 | 22 | 23 |12 | {{ $item['text'] }} 13 | 14 | 15 | @if(isset($item['label'])) 16 | 17 | {{ $item['label'] }} 18 | 19 | @endif 20 |
21 | 22 | 23 | 24 | {{-- Menu items --}} 25 | 28 | 29 |10 | Toko Online WhatsApp adalah marketplace yang memudahkan Anda membeli produk atau jasa 11 | dengan memanfaatkan aplikasi WhatsApp. 12 | 13 |
14 | 15 | Cari Produk 16 | 17 | 18 | Daftar 19 | 20 |
22 |
23 | {{-- Large brand logo --}}
24 |
23 |
24 | {{-- Brand text --}}
25 |
26 | {!! config('adminlte.logo', 'AdminLTE') !!}
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/resources/lang/vendor/adminlte/ja/adminlte.php:
--------------------------------------------------------------------------------
1 | '氏名',
6 | 'email' => 'メールアドレス',
7 | 'password' => 'パスワード',
8 | 'retype_password' => 'もう一度入力',
9 | 'remember_me' => 'パスワードを記憶する',
10 | 'register' => '登録する',
11 | 'register_a_new_membership' => 'アカウントを登録する',
12 | 'i_forgot_my_password' => 'パスワードを忘れた',
13 | 'i_already_have_a_membership' => 'すでにアカウントを持っている',
14 | 'sign_in' => 'ログイン',
15 | 'log_out' => 'ログアウト',
16 | 'toggle_navigation' => 'ナビゲーションを開閉',
17 | 'login_message' => 'ログインしてセッションを開始する',
18 | 'register_message' => 'アカウントを登録する',
19 | 'password_reset_message' => 'パスワードをリセットする',
20 | 'reset_password' => 'パスワードをリセットする',
21 | 'send_password_reset_link' => 'パスワードリセットリンクを送信する。',
22 | 'verify_message' => 'あなたのアカウントは認証が必要です。',
23 | 'verify_email_sent' => 'あなたのメールアドレスに認証用のリンクを送信しました。',
24 | 'verify_check_your_email' => '続行する前に、認証用リンクについてメールを確認してください。',
25 | 'verify_if_not_recieved' => 'メールが届かない場合',
26 | 'verify_request_another' => 'ここをクリックしてもう一度送信する',
27 | ];
28 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/VerificationController.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
39 | $this->middleware('signed')->only('verify');
40 | $this->middleware('throttle:6,1')->only('verify', 'resend');
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/app/Product.php:
--------------------------------------------------------------------------------
1 | belongsTo('App\CategoryProduct');
22 | }
23 |
24 |
25 | //
26 | public function handleFoto($request){
27 | $img = $request->file('images');
28 | $filename = Str::slug($request->name).time().".".$img->extension();
29 | $filepath = $request->images->storeAs('uploads/products', $filename,'public');
30 | return "/storage/{$filepath}";
31 | }
32 |
33 | public function updateFoto($request, $images){
34 | $img = $request->file('images');
35 | $filename = Str::slug($request->name).time().".".$img->extension();
36 | $filepath = $request->images->storeAs('uploads/products', $filename,'public');
37 | try{
38 | unlink(public_path($images));
39 | unlink(asset($images));
40 | return "/storage/{$filepath}";
41 | }catch(Exception $e){
42 | return "/storage/{$filepath}";
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/resources/views/website/seller/dashboard.blade.php:
--------------------------------------------------------------------------------
1 | @extends('website.master')
2 | @section('title', 'Landing Page')
3 | @section('content')
4 | 8 | Harap konfirmasi alamat email terlebih dahulu. 9 | 10 | Kirim Ulang Email 11 | 12 |
13 | @endif 14 |Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolor quo sunt eos ab voluptas quas unde sit provident non rerum commodi officia et hic, veniam eum. Ab minima aliquam impedit! Fugiat itaque laboriosam expedita at laborum, ipsa omnis nulla officiis quas eos vel laudantium quidem natus dolore ducimus nemo? Corporis architecto facere debitis consectetur voluptatem cumque harum, facilis, blanditiis excepturi quae maxime minus doloremque doloribus! Sapiente necessitatibus est ratione. Explicabo delectus magnam minus expedita optio debitis maiores fugiat ducimus temporibus!
10 |20 | {!!$item[0]!!} 21 |
22 | @endforeach 23 | @endif 24 | 46 |