Skip to content

Commit

Permalink
'update'
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxorsprogramming committed Apr 4, 2022
1 parent c391a7d commit f5109b9
Show file tree
Hide file tree
Showing 11 changed files with 174 additions and 165 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,33 @@
<li>Analisa penjualan</li>
<li>Laporan analisa penjualan</li>

## Tampilan Aplikasi

- Login

<img src="https://s3.jagoanstorage.com/aditia-ss-storage-3561/Aplikasi-Analisa-Penjualan-Apriori/LOGIN.png" width="800px"><br/>

- Dashboard

<img src="https://s3.jagoanstorage.com/aditia-ss-storage-3561/Aplikasi-Analisa-Penjualan-Apriori/DASHBOARD.png" width="800px"><br/>

- Data Produk

<img src="https://s3.jagoanstorage.com/aditia-ss-storage-3561/Aplikasi-Analisa-Penjualan-Apriori/DATA_PRODUK.png" width="800px"><br/>

- Pengujian

<img src="https://s3.jagoanstorage.com/aditia-ss-storage-3561/Aplikasi-Analisa-Penjualan-Apriori/PENGUJIAN.png" width="800px"><br/>

- Hasil Analisa 1

<img src="https://s3.jagoanstorage.com/aditia-ss-storage-3561/Aplikasi-Analisa-Penjualan-Apriori/HASIL_ANALISA.png" width="800px"><br/>

- Hasil Analisa 2

<img src="https://s3.jagoanstorage.com/aditia-ss-storage-3561/Aplikasi-Analisa-Penjualan-Apriori/HASIL_ANALISA_2.png" width="800px"><br/>


<br/>
<strong>Instalasi</strong>

Expand Down
4 changes: 4 additions & 0 deletions app/Http/Controllers/C_Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ public function loginProses(Request $request)
$dr = ['status' => $status];
return \Response::json($dr);
}
public function logout(Request $request)
{
return redirect('/');
}
}
17 changes: 15 additions & 2 deletions app/Http/Controllers/C_Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use Illuminate\Http\Request;

use App\Models\M_Produk;
use App\Models\M_Penjualan;

class C_Dashboard extends Controller
{
public function dashboard()
Expand All @@ -12,8 +15,18 @@ public function dashboard()
}
public function berandaPage()
{
$dr = ['status' => 'sukses'];
return view('main.berandaPage');
$totalProduk = M_Produk::count();
$totalPenjualan = M_Penjualan::count();
$totalHarga = M_Produk::sum('harga');
$transaksiTerakhir = M_Penjualan::distinct() -> take (7) -> get(['no_faktur']);
$rataRata = $totalHarga / $totalProduk;
$dr = [
'totalProduk' => $totalProduk,
'totalPenjualan' => $totalPenjualan,
'rataRata' => $rataRata,
'transaksiTerakhir' => $transaksiTerakhir
];
return view('main.berandaPage', $dr);
}

public function infoAplikasi()
Expand Down
5 changes: 5 additions & 0 deletions app/Models/M_Penjualan.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public function hitungTotalQt($idTransaksi)
return $this::where('no_faktur', $idTransaksi) -> sum('qt');
}

public function getCreatedAt($idTransaksi)
{
return $this::where('no_faktur', $idTransaksi) -> pluck('created_at') -> first();
}

public function getTotalHarga($idTransaksi)
{
$qTransaksi = $this::where('no_faktur', $idTransaksi) -> get();
Expand Down
Binary file added public/ladun/base/aditia-foto.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/ladun/base/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions resources/views/auth/loginPage.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,6 @@
<input type="password" class="form-control" id="txtPassword" placeholder="Enter password">
</div>

<div class="row">
<div class="col-md-6">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customControlInline">
<label class="custom-control-label" for="customControlInline">Remember me</label>
</div>
</div>
<div class="col-md-6">
<div class="text-md-right mt-3 mt-md-0">
<a href="auth-recoverpw.html" class="text-muted"><i class="mdi mdi-lock"></i> Forgot your password?</a>
</div>
</div>
</div>
<div class="mt-4">
<a class="btn btn-success btn-block waves-effect waves-light" href="javascript:void(0)" @click="loginAtc()">Log In</a>
</div>
Expand Down
16 changes: 5 additions & 11 deletions resources/views/layout/headerApp.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,7 @@
<i class="fa fa-fw fa-bars"></i>
</button>

<!-- App Search-->
<form class="app-search d-none d-lg-block">
<div class="position-relative">
<input type="text" class="form-control" placeholder="Search...">
<span class="mdi mdi-magnify"></span>
</div>
</form>

</div>

<div class="d-flex">
Expand Down Expand Up @@ -128,7 +122,7 @@
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle arrow-none" href="javascript:void(0)" id="topnav-layout" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="mdi mdi-flip-horizontal mr-2"></i>Data Master <div class="arrow-down"></div>
<i class="mdi mdi-database mr-2"></i>Data Master <div class="arrow-down"></div>
</a>
<div class="dropdown-menu" aria-labelledby="topnav-layout">
<a href="javascript:void(0)" onclick="renderPage('app/produk/data', 'Produk')" class="dropdown-item">Data Produk</a>
Expand All @@ -137,17 +131,17 @@
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0)" onclick="renderPage('app/apriori/setup', 'Proses Apriori')">
<i class="mdi mdi-storefront mr-2"></i>Proses Apriori
<i class="mdi mdi-equalizer-outline mr-2"></i>Proses Apriori
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0)" onclick="renderPage('app/laporan/data', 'Laporan Apriori')">
<i class="mdi mdi-storefront mr-2"></i>Laporan
<i class="mdi mdi-file-document-box-search mr-2"></i>Laporan
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0)" onclick="renderPage('app/info-aplikasi', 'Informasi Aplikasi')">
<i class="mdi mdi-storefront mr-2"></i>Info Aplikasi
<i class="mdi mdi-information mr-2"></i>Info Aplikasi
</a>
</li>
</ul>
Expand Down
Loading

0 comments on commit f5109b9

Please sign in to comment.