@endsection
--------------------------------------------------------------------------------
/resources/views/products/create.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app') @section('content')
@endsection
--------------------------------------------------------------------------------
/resources/views/products/edit.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app') @section('content')
@endsection
--------------------------------------------------------------------------------
/resources/views/products/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app') @section('content')
8 |
9 |
{{ $products->links() }}
10 |
@foreach($products as $product)
11 |
12 |
13 |
14 |
15 |
16 |
17 |
{{ $product->name }}
18 |
{{ $product->get_extract }}
19 |
20 |
Edit
21 |
22 |
24 |
25 |
26 |
@endforeach
{{ $products->links() }}
27 |
@endsection
--------------------------------------------------------------------------------
/resources/views/sales/create.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app') @section('content')
@if($errors->any())
@foreach($errors->all() as $error) - {{ $error }} @endforeach
@endif
Kode Product Add @foreach($products as $product){{ $product->product_id }} {{ $product->name }} Add @endforeach
@endsection
--------------------------------------------------------------------------------
/resources/views/sales/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app') @section('content')
@foreach($sales as $sale)
Customer : {{ $sale->client->name }}
Total: Rp.{{ $sale->total }} Date: {{ date_format($sale->created_at, 'd-M-Y') }}
View @endforeach
{{ $sales->links() }}
@endsection
--------------------------------------------------------------------------------
/resources/views/sales/single.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')@include('auth.pos')@section('content')@include('auth.passwords.admin')
Z-Invoice Date: {{ date_format($sale->created_at, 'd-M-Y') }} https://mesinkasironline.web.app Customer:
{{ $sale->client->name }} {{ $sale->client->rfc }} Address: {{ $sale->client->address }} Phone: {{ $sale->client->phone }} Email: {{$sale->client->email}} Invoice :{{$sale->sale_id}}
Kode Product Qty Price @include('auth.passwords.pos')@foreach($carts as $cart)@include('auth.passwords.transaction'){{ $cart->product_id }} {{ $cart->products[0]->name}} {{ $cart->amount }} {{ $cart->products[0]->price }} @endforeach
Total: Rp.{{ $sale->total }}
Thank you
/ For invoice print just presh ctrl + P
@endsection
--------------------------------------------------------------------------------
/resources/views/users/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app') @section('content')
10 |
11 |
12 |
@foreach($users as $user)
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
{{ $user->name }}
22 |
23 |
25 |
26 |
27 |
@endforeach
28 |
29 |
@endsection
--------------------------------------------------------------------------------
/resources/views/welcome.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app') @section('content')
@endsection
--------------------------------------------------------------------------------
/routes/api.php:
--------------------------------------------------------------------------------
1 | get('/user', function (Request $request) {
18 | return $request->user();
19 | });
20 |
--------------------------------------------------------------------------------
/routes/channels.php:
--------------------------------------------------------------------------------
1 | id === (int) $id;
18 | });
19 |
--------------------------------------------------------------------------------
/routes/console.php:
--------------------------------------------------------------------------------
1 | comment(Inspiring::quote());
19 | })->describe('Display an inspiring quote');
20 |
--------------------------------------------------------------------------------
/routes/web.php:
--------------------------------------------------------------------------------
1 | name('users.index');
25 | Route::delete('users/{user}', 'UserController@destroy')->name('users.destroy');
26 |
27 | Route::get('/home', 'HomeController@index')->name('home');
28 | Route::get('/data', 'DataController@index')->name('data');
29 | Route::get('/office', 'OfficeController@index')->name('office');
30 |
31 | Route::resource('products', 'ProductController')->middleware('auth');
32 |
33 | Route::resource('clients', 'ClientController')->middleware('auth');
34 |
35 | Route::resource('sales', 'SaleController')
36 | ->except(['update', 'edit'])
37 | ->middleware('auth');
38 |
39 | Route::resource('categories', 'CategoryController')
40 | ->except(['update', 'edit', 'show'])
41 | ->middleware('auth');
42 |
43 | Route::get('/reports/sales', 'SaleController@export')->name('reports.sales')
44 | ->middleware('auth');
45 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/storage/app/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !public/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/storage/app/public/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/storage/framework/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !data/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/storage/framework/cache/data/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/sessions/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/testing/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/views/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/tests/CreatesApplication.php:
--------------------------------------------------------------------------------
1 | make(Kernel::class)->bootstrap();
19 |
20 | return $app;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/tests/Feature/ExampleTest.php:
--------------------------------------------------------------------------------
1 | get('/');
18 |
19 | $response->assertStatus(200);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/tests/TestCase.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------