Browse Source

kelima

master
Gunawan19621 1 year ago
parent
commit
6479432f4e
  1. 10
      app/Http/Controllers/BarangKeluarController.php
  2. 10
      app/Http/Controllers/BarangMasukController.php
  3. 11
      app/Models/BarangKeluar.php
  4. 11
      app/Models/BarangMasuk.php
  5. 27
      database/migrations/2023_09_19_143000_create_barang_masuks_table.php
  6. 27
      database/migrations/2023_09_19_144206_create_barang_keluars_table.php
  7. 9
      resources/views/layouts/sidebar.blade.php

10
app/Http/Controllers/BarangKeluarController.php

@ -0,0 +1,10 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class BarangKeluarController extends Controller
{
//
}

10
app/Http/Controllers/BarangMasukController.php

@ -0,0 +1,10 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class BarangMasukController extends Controller
{
//
}

11
app/Models/BarangKeluar.php

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class BarangKeluar extends Model
{
use HasFactory;
}

11
app/Models/BarangMasuk.php

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class BarangMasuk extends Model
{
use HasFactory;
}

27
database/migrations/2023_09_19_143000_create_barang_masuks_table.php

@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('barang_masuks', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('barang_masuks');
}
};

27
database/migrations/2023_09_19_144206_create_barang_keluars_table.php

@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('barang_keluars', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('barang_keluars');
}
};

9
resources/views/layouts/sidebar.blade.php

@ -21,24 +21,23 @@
<hr class="sidebar-divider"> <hr class="sidebar-divider">
<!-- Nav Item - Pages Collapse Menu --> <!-- Nav Item - Pages Collapse Menu -->
<li class="nav-item"> {{-- <li class="nav-item">
<a class="nav-link" href="{{ url('/dashboard/transaksi') }}"> <a class="nav-link" href="{{ url('/dashboard/transaksi') }}">
<span class="ml-4">Transaksi</span> <span class="ml-4">Transaksi</span>
</a> </a>
</li> </li> --}}
{{-- <li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="true" <a class="nav-link" href="#" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="true"
aria-controls="collapseTwo"> aria-controls="collapseTwo">
<span class="ml-4">Transaksi</span> <span class="ml-4">Transaksi</span>
</a> </a>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar"> <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
<div class="bg-white py-2 collapse-inner rounded"> <div class="bg-white py-2 collapse-inner rounded">
<h6 class="collapse-header">Custom Components:</h6>
<a class="collapse-item" href="buttons.html">Barang Masuk</a> <a class="collapse-item" href="buttons.html">Barang Masuk</a>
<a class="collapse-item" href="cards.html">Barang Keluar</a> <a class="collapse-item" href="cards.html">Barang Keluar</a>
</div> </div>
</div> </div>
</li> --}} </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="{{ url('/dashboard/peminjaman') }}"> <a class="nav-link" href="{{ url('/dashboard/peminjaman') }}">
<span class="ml-4">Peminjaman</span> <span class="ml-4">Peminjaman</span>

Loading…
Cancel
Save