Browse Source

update barang masuk dan keluar

master
Gunawan19621 1 year ago
parent
commit
a183e3fea8
  1. 92
      app/Http/Controllers/BarangKeluarController.php
  2. 66
      app/Http/Controllers/BarangMasukController.php
  3. 50
      app/Http/Controllers/TransaksiController.php
  4. 17
      app/Models/BarangKeluar.php
  5. 11
      app/Models/BarangMasuk.php
  6. 36
      database/migrations/2023_10_03_122058_create_barang_masuks_table.php
  7. 34
      database/migrations/2023_10_03_134950_create_barang_keluars_table.php
  8. BIN
      public/asset_landingpage/images/bg1.jpg
  9. 8
      resources/views/addons/SettingPlatform/manajement_asset.blade.php
  10. 10
      resources/views/addons/SettingPlatform/update_user.blade.php
  11. 185
      resources/views/addons/pengadaan.blade.php
  12. 8
      resources/views/dashboard/peminjaman.blade.php
  13. 248
      resources/views/dashboard/transaksi/barang_keluar.blade.php
  14. 5
      resources/views/dashboard/transaksi/barang_masuk.blade.php
  15. 117
      resources/views/landing_page/layouts/main.blade.php
  16. 4
      resources/views/layouts/sidebar.blade.php
  17. 32
      routes/web.php

92
app/Http/Controllers/BarangKeluarController.php

@ -0,0 +1,92 @@
<?php
namespace App\Http\Controllers;
use App\Models\BarangKeluar;
use App\Models\m_asset;
use Illuminate\Http\Request;
class BarangKeluarController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
$Bkeluar = BarangKeluar::all();
$asset = m_asset::all();
return view('dashboard.transaksi.barang_keluar', compact('Bkeluar', 'asset'));
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
// dd('masuk');
$request->validate([
'asset_id' => 'required',
'jumlah' => 'required',
'tanggal_keluar' => 'required',
'penerima_barang' => 'required',
'exit_warehouse' => 'required',
'keterangan' => 'required',
]);
// dd($request);
try {
$validatedData = $request->except('_token');
// dd($validatedData);
BarangKeluar::create($validatedData);
return redirect()->back()->with('success', 'Data barang keluar berhasil ditambah.');
} catch (\Throwable $th) {
return redirect()->back()->with('error', 'Data barang keluar gagal ditambah.');
}
}
/**
* Display the specified resource.
*/
public function show($barang_masuk)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit($barang_masuk)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $barang_masuk)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy($id)
{
// dd("oke");
try {
$asset = BarangKeluar::findOrFail($id);
$asset->delete();
return redirect()->back()->with('success', 'Data Barang Keluar berhasil dihapus');
} catch (\Throwable $th) {
return redirect()->back()->with('error', 'Data Barang Keluar gagal dihapus');
}
}
}

66
app/Http/Controllers/BarangMasukController.php

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\BarangMasuk;
use App\Http\Requests\UpdateBarang_masukRequest;
use Illuminate\Http\Request;
class BarangMasukController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
return view('dashboard.transaksi.barang_masuk');
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(BarangMasuk $barang_masuk)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(BarangMasuk $barang_masuk)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, BarangMasuk $barang_masuk)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(BarangMasuk $barang_masuk)
{
//
}
}

50
app/Http/Controllers/TransaksiController.php

@ -6,8 +6,58 @@ use Illuminate\Http\Request;
class TransaksiController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
return view('dashboard.transaksi');
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
// dd('oke');
}
/**
* Display the specified resource.
*/
public function show($id)
{
// dd('oke');
}
/**
* Show the form for editing the specified resource.
*/
public function edit()
{
// dd('oke');
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id)
{
// dd('oke');
}
/**
* Remove the specified resource from storage.
*/
public function destroy($id)
{
// dd("oke");
}
}

17
app/Models/BarangKeluar.php

@ -0,0 +1,17 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class BarangKeluar extends Model
{
use HasFactory;
protected $table = 'barang_keluars', $guarded = ['id'];
public function asset()
{
return $this->belongsTo(m_asset::class, 'asset_id');
}
}

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;
}

36
database/migrations/2023_10_03_122058_create_barang_masuks_table.php

@ -0,0 +1,36 @@
<?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->bigInteger('asset_id')->unsigned();
$table->foreign('asset_id')->references('id')->on('m_assets');
$table->integer('jumlah'); // Kolom untuk jumlah barang masuk
$table->date('tanggal_masuk'); // Kolom untuk tanggal barang masuk
$table->string('asal_barang', 200); // Kolom untuk PIC barang masuk
$table->string('pengirim_barang', 200); // Kolom untuk PIC barang masuk
$table->string('penerima_barang', 200); // Kolom untuk PIC barang masuk
$table->string('enter_warehouse', 200)->nullable();
$table->string('keterangan')->nullable(); // Kolom untuk keterangan (opsional)
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('barang_masuks');
}
};

34
database/migrations/2023_10_03_134950_create_barang_keluars_table.php

@ -0,0 +1,34 @@
<?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->bigInteger('asset_id')->unsigned();
$table->foreign('asset_id')->references('id')->on('m_assets');
$table->integer('jumlah'); // Kolom untuk jumlah barang masuk
$table->date('tanggal_keluar'); // Kolom untuk tanggal barang masuk
$table->string('penerima_barang', 200); // Kolom untuk PIC barang masuk
$table->string('exit_warehouse', 200)->nullable();
$table->string('keterangan')->nullable(); // Kolom untuk keterangan (opsional)
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('barang_keluars');
}
};

BIN
public/asset_landingpage/images/bg1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 KiB

8
resources/views/addons/SettingPlatform/manajement_asset.blade.php

@ -179,9 +179,11 @@
<label for="warehouse_id" class="col-form-label">Gudang:</label>
<select class="form-control" name="warehouse_id" id="warehouse_id">
<option disabled selected>Pilih Asal Gudang</option>
@foreach ($warehouse as $data)
<option value="{{ $data->id }}">{{ $data->name }}</option>
</option>
@foreach ($warehouse as $data_warehouse)
<option value="{{ $data_warehouse->id }}"
@if ($data_warehouse->id == $data->warehouse_id) selected
@else @endif>
{{ $data_warehouse->name }}</option>
@endforeach
</select>

10
resources/views/addons/SettingPlatform/update_user.blade.php

@ -50,7 +50,10 @@
<select class="form-control" name="role_id" type="text" id="role_id">
<option disabled selected>Pilih Hak Akses</option>
@foreach ($role as $data)
<option value="{{ $data->id }}">{{ $data->name }}</option>
<option value="{{ $data->id }}"
@if ($data->id == $user->role_id) selected
@else @endif>
{{ $data->name }}</option>
@endforeach
</select>
@ -58,7 +61,10 @@
<select class="form-control" name="warehouse_id" type="text" id="warehouse_id">
<option disabled selected>Pilih DItugaskan</option>
@foreach ($warehouse as $data)
<option value="{{ $data->id }}">{{ $data->name }}</option>
<option value="{{ $data->id }}"
@if ($data->id == $user->warehouse_id) selected
@else @endif>
{{ $data->name }}</option>
@endforeach
</select>
</div>

185
resources/views/addons/pengadaan.blade.php

@ -2,4 +2,189 @@
@section('title', 'Pengadaan')
@section('content')
<H3>Halaman Pengadaan</H3>
{{-- <div class="container-fluid">
<h1 class="h3 mb-2 text-gray-800">Tabel Asset</h1>
<div class="mb-4">
<p>Our Item Tables are enhanced with the help of the DataTables plugin. This is a powerful tool that allows you
to explore return data in a more interactive and efficient way</p>
<a href="#" class="btn btn-success btn-icon-split" data-toggle="modal" data-target="#tambahDataModal">
<span class="text">+ Tambah data</span>
</a>
</div>
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">DataTables Asset</h5>
</div>
<div class="col-6 text-right">
<a href="{{ route('assetcetakpdf.cetakpdf') }}" class="btn btn-success btn-icon-split ml-auto"
target="_blank">
<span class="text">Cetak PDF</span>
</a>
<a href="{{ route('assetexport.export') }}" class="btn btn-info btn-icon-split ml-auto"
target="_blank">
<span class="text">Cetak Exel</span>
</a>
</div>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<thead>
<tr>
<th>No. Seri</th>
<th>Nama</th>
<th>Deskripsi</th>
<th>Gudang</th>
<th>Tanggal</th>
<th>QR</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tfoot>
<tr>
<th>No. Seri</th>
<th>Nama</th>
<th>Deskripsi</th>
<th>Gudang</th>
<th>Tanggal</th>
<th>QR</th>
<th class="text-center">Action</th>
</tr>
</tfoot>
<tbody>
@foreach ($asset as $data)
<tr>
<td>{{ $data->seri }}</td>
<td>{{ $data->name }}</td>
<td>{{ $data->description }}</td>
<td>{{ $data->warehouse->name }}</td>
<td>{{ \Carbon\Carbon::parse($data->date)->format('d-m-Y') }}</td>
<td>{{ $data->qr_count }}</td>
<td class="text-center">
<a href="#" data-toggle="modal"
data-target="#editDataModal{{ $data['id'] }}">
<i class="fa fa-edit mr-2" style="font-size: 20px"></i>
</a>
<a href="{{ route('hapusAsset.destroy', $data->id) }}"
onclick="return confirm('Apakah Anda yakin ingin menghapus data ini?')">
<i class="fa fa-trash text-danger mr-2" style="font-size: 20px"></i>
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Modal Tambah Asset-->
<div class="modal fade" id="tambahDataModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Tambah Data</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form action="{{ route('asset.store') }}" method="POST" enctype="multipart/form-data">
@csrf
<div class="form-group">
<label for="name" class="col-form-label">Nama Asset:</label>
<input class="form-control" name="name" type="text" id="name"
value="{{ old('name') }}" placeholder="Masukan Nama Asset" required>
<label for="description" class="col-form-label">Deskripsi Asset:</label>
<textarea class="form-control" name="description" id="description" placeholder="Masukkan Deskripsi Asset" required>{{ old('description') }}</textarea>
<label for="warehouse_id" class="col-form-label">Gudang:</label>
<select class="form-control" name="warehouse_id" type="text" id="warehouse_id">
<option disabled selected>Pilih Asal Gudang</option>
@foreach ($warehouse as $data)
<option value="{{ $data->id }}">{{ $data->name }}</option>
@endforeach
</select>
<label for="date" class="col-form-label">Tanggal:</label>
<input class="form-control" name="date" type="date" id="date"
value="{{ old('date') }}" placeholder="Masukan Tanggal Asset" required>
<label for="qr_count" class="col-form-label">QR_Count:</label>
<input class="form-control" name="qr_count" type="text" id="qr_count"
value="{{ old('qr_count') }}" placeholder="Masukan Kode QR"
onkeypress="return event.charCode >= 48 && event.charCode <= 57" required>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Tutup</button>
<button type="submit" class="btn btn-primary">Simpan</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Modal Edit Asset-->
@foreach ($asset as $data)
<div class="modal fade" id="editDataModal{{ $data['id'] }}" tabindex="-1" role="dialog"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Edit Data Asset</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form action="{{ route('asset.update', $data->id) }}" method="POST"
enctype="multipart/form-data">
@csrf
@method('PUT')
<div class="form-group">
<label for="name" class="col-form-label">Nama Asset:</label>
<input class="form-control" name="name" type="text" id="name"
value="{{ $data->name }}" placeholder="Masukan Nama Asset" required>
<label for="description" class="col-form-label">Deskripsi Asset:</label>
<textarea class="form-control" name="description" id="description" placeholder="Masukkan Deskripsi Asset" required>{{ $data->description }}</textarea>
<label for="qr_count" class="col-form-label">QR_Count:</label>
<input class="form-control" name="qr_count" type="text" id="qr_count"
value="{{ $data->qr_count }}" placeholder="Masukan Kode QR"
onkeypress="return event.charCode >= 48 && event.charCode <= 57" required>
<label for="date" class="col-form-label">Tanggal:</label>
<input class="form-control" name="date" type="date" id="date"
value="{{ \Carbon\Carbon::parse($data->date)->format('Y-m-d') }}"
placeholder="Masukan Tanggal Asset" required>
<label for="warehouse_id" class="col-form-label">Gudang:</label>
<select class="form-control" name="warehouse_id" id="warehouse_id">
<option disabled selected>Pilih Asal Gudang</option>
@foreach ($warehouse as $data)
<option value="{{ $data->id }}">{{ $data->name }}</option>
</option>
@endforeach
</select>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Tutup</button>
<button type="submit" class="btn btn-primary">Simpan</button>
</div>
</form>
</div>
</div>
</div>
</div>
@endforeach --}}
@endsection

8
resources/views/dashboard/peminjaman.blade.php

@ -135,7 +135,13 @@
<label for="asset_id" class="col-form-label">Nama Asset:</label>
<select class="form-control" name="asset_id" type="text" id="asset_id">
<option disabled selected>Pilih Nama Asset</option>
<option value="{{ $data->asset_id }}" selected>{{ $data->asset->name }}</option>
@foreach ($asset as $data_asset)
<option value="{{ $data_asset->id }}"
@if ($data_asset->id == $data->id) selected
@else @endif>
{{ $data_asset->name }}</option>
@endforeach
{{-- <option value="{{ $data->asset_id }}" selected>{{ $data->asset->name }}</option> --}}
</select>
<label for="exit_at" class="col-form-label">Tanggal:</label>
<input class="form-control" name="exit_at" type="date" id="exit_at"

248
resources/views/dashboard/transaksi/barang_keluar.blade.php

@ -0,0 +1,248 @@
@extends('layouts.main')
@section('title', 'Barang Keluar')
@section('content')
<div class="container-fluid">
<h1 class="h3 mb-2 text-gray-800">Tabel Barang Keluar</h1>
<div class="mb-4">
<p>Our Outgoing Item Tables are enhanced with the help of the DataTables plugin. This is a powerful tool that
allows you to explore outgoing data in a more interactive and efficient way.</p>
<a href="#" class="btn btn-success btn-icon-split" data-toggle="modal" data-target="#tambahDataModal">
<span class="text">+ Tambah data</span>
</a>
</div>
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Data Barang Keluar</h5>
</div>
{{-- <div class="col-6 text-right">
<a href="{{ route('assetcetakpdf.cetakpdf') }}" class="btn btn-success btn-icon-split ml-auto"
target="_blank">
<span class="text">Cetak PDF</span>
</a>
<a href="{{ route('assetexport.export') }}" class="btn btn-info btn-icon-split ml-auto"
target="_blank">
<span class="text">Cetak Exel</span>
</a>
</div> --}}
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<thead>
<tr>
<th>Nama Barang</th>
<th>Jumlah</th>
<th>Tgl Keluar</th>
<th>Penerima</th>
<th>Asal Gudang</th>
<th>Keterangan</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Nama Barang</th>
<th>Jumlah</th>
<th>Tgl Keluar</th>
<th>Penerima</th>
<th>Asal Gudang</th>
<th>Keterangan</th>
<th class="text-center">Action</th>
</tr>
</tfoot>
<tbody>
@foreach ($Bkeluar as $data)
<tr>
<td>{{ $data->asset->name }}</td>
<td>{{ $data->jumlah }}</td>
<td>{{ \Carbon\Carbon::parse($data->tanggal_keluar)->format('d-m-Y') }}</td>
<td>{{ $data->penerima_barang }}</td>
<td>{{ $data->exit_warehouse }}</td>
<td>{{ $data->keterangan }}</td>
<td class="text-center">
<a href="#" data-toggle="modal"
data-target="#editDataModal{{ $data['id'] }}">
<i class="fa fa-edit mr-2" style="font-size: 20px"></i>
</a>
<a href="{{ route('hapusBarangK.destroy', $data->id) }}"
onclick="return confirm('Apakah Anda yakin ingin menghapus data ini?')">
<i class="fa fa-trash text-danger mr-2" style="font-size: 20px"></i>
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Modal Tambah Asset-->
<div class="modal fade" id="tambahDataModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Tambah Data</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
{{-- <form action="{{ route('asset.store') }}" method="POST" enctype="multipart/form-data"> --}}
<form action="{{ route('barangKeluar.store') }}" method="POST" enctype="multipart/form-data">
@csrf
<div class="form-group">
<label for="asset_id" class="col-form-label">Nama Barang:</label>
<select class="form-control" name="asset_id" type="text" id="asset_id">
<option disabled selected>Pilih Nama Barang</option>
@foreach ($asset as $data)
<option value="{{ $data->id }}">{{ $data->name }}</option>
@endforeach
</select>
<label for="jumlah" class="col-form-label">Jumlah Barang:</label>
<input class="form-control" name="jumlah" type="number" id="jumlah"
value="{{ old('jumlah') }}" placeholder="Masukkan Jumlah Barang" required>
<label for="tanggal_keluar" class="col-form-label">Tgl Keluar:</label>
<input class="form-control" name="tanggal_keluar" type="date" id="tanggal_keluar"
value="{{ old('tanggal_keluar') }}" placeholder="Masukkan Tgl Keluar Barang" required>
<label for="penerima_barang" class="col-form-label">Pererima:</label>
<input class="form-control" name="penerima_barang" type="text" id="penerima_barang"
value="{{ old('penerima_barang') }}" placeholder="Masukkan Penerima Barang" required>
<label for="exit_warehouse" class="col-form-label">Asal Gudang:</label>
<input class="form-control" name="exit_warehouse" type="text" id="exit_warehouse"
value="{{ old('exit_warehouse') }}" placeholder="Masukan Asal Gudang Barang" required>
<label for="keterangan" class="col-form-label">Keterangan:</label>
<textarea class="form-control" name="keterangan" id="keterangan" placeholder="Masukkan Keterangan Barang" required>{{ old('keterangan') }}</textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Tutup</button>
<button type="submit" class="btn btn-primary">Simpan</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Modal Edit Asset-->
@foreach ($Bkeluar as $data)
<div class="modal fade" id="editDataModal{{ $data['id'] }}" tabindex="-1" role="dialog"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Edit Data</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form action="#" method="POST" enctype="multipart/form-data">
@csrf
@method('PUT')
<div class="form-group">
<label for="asset_id" class="col-form-label">Nama Barang:</label>
<select class="form-control" name="asset_id" type="text" id="asset_id">
<option disabled selected>Pilih Nama Barang</option>
@foreach ($asset as $data_asset)
<option value="{{ $data->id }}"
@if ($data_asset->id == $data->asset_id) selected
@else @endif>
{{ $data_asset->name }}</option>
@endforeach
</select>
<label for="jumlah" class="col-form-label">Jumlah Barang:</label>
<input class="form-control" name="jumlah" type="number" id="jumlah"
value="{{ $data->jumlah }}" placeholder="Masukkan Jumlah Barang" required>
<label for="tanggal_keluar" class="col-form-label">Tgl Keluar:</label>
<input class="form-control" name="tanggal_keluar" type="date" id="tanggal_keluar"
value="{{ \Carbon\Carbon::parse($data->tanggal_keluar)->format('Y-m-d') }}"
placeholder="Masukkan Tgl Keluar Barang" required>
<label for="penerima_barang" class="col-form-label">Pererima:</label>
<input class="form-control" name="penerima_barang" type="text" id="penerima_barang"
value="{{ $data->penerima_barang }}" placeholder="Masukkan Penerima Barang" required>
<label for="exit_warehouse" class="col-form-label">Asal Gudang:</label>
<input class="form-control" name="exit_warehouse" type="text" id="exit_warehouse"
value="{{ $data->exit_warehouse }}" placeholder="Masukan Asal Gudang Barang"
required>
<label for="keterangan" class="col-form-label">Keterangan:</label>
<textarea class="form-control" name="keterangan" id="keterangan" placeholder="Masukkan Keterangan Barang" required>{{ $data->keterangan }}</textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Tutup</button>
<button type="submit" class="btn btn-primary">Simpan</button>
</div>
</form>
</div>
</div>
</div>
{{-- <div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Edit Data Asset</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form action="{{ route('asset.update', $data->id) }}" method="POST"
enctype="multipart/form-data">
@csrf
@method('PUT')
<div class="form-group">
<label for="name" class="col-form-label">Nama Asset:</label>
<input class="form-control" name="name" type="text" id="name"
value="{{ $data->name }}" placeholder="Masukan Nama Asset" required>
<label for="description" class="col-form-label">Deskripsi Asset:</label>
<textarea class="form-control" name="description" id="description" placeholder="Masukkan Deskripsi Asset" required>{{ $data->description }}</textarea>
<label for="qr_count" class="col-form-label">QR_Count:</label>
<input class="form-control" name="qr_count" type="text" id="qr_count"
value="{{ $data->qr_count }}" placeholder="Masukan Kode QR"
onkeypress="return event.charCode >= 48 && event.charCode <= 57" required>
<label for="date" class="col-form-label">Tanggal:</label>
<input class="form-control" name="date" type="date" id="date"
value="{{ \Carbon\Carbon::parse($data->date)->format('Y-m-d') }}"
placeholder="Masukan Tanggal Asset" required>
<label for="warehouse_id" class="col-form-label">Gudang:</label>
<select class="form-control" name="warehouse_id" id="warehouse_id">
<option disabled selected>Pilih Asal Gudang</option>
@foreach ($warehouse as $data_warehouse)
<option value="{{ $data_warehouse->id }}"
@if ($data_warehouse->id == $data->warehouse_id) selected
@else @endif>
{{ $data_warehouse->name }}</option>
@endforeach
</select>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Tutup</button>
<button type="submit" class="btn btn-primary">Simpan</button>
</div>
</form>
</div>
</div>
</div> --}}
</div>
@endforeach
@endsection

5
resources/views/dashboard/transaksi/barang_masuk.blade.php

@ -0,0 +1,5 @@
@extends('layouts.main')
@section('title', 'Barang Masuk')
@section('content')
<p>Halaman Barang Masuk</p>
@endsection

117
resources/views/landing_page/layouts/main.blade.php

@ -33,14 +33,10 @@
</div>
<div class="site-mobile-menu-body"></div>
</div>
<nav class="site-nav mb-5">
<div class="pb-2 top-bar mb-3">
<div class="container">
<div class="row align-items-center">
<div class="col-6 col-lg-9">
<a href="#" class="small mr-3"><span class="icon-question-circle-o mr-2"></span> <span
class="d-none d-lg-inline-block">Have a questions?</span></a>
@ -49,7 +45,6 @@
<a href="#" class="small mr-3"><span class="icon-envelope mr-2"></span> <span
class="d-none d-lg-inline-block">siopas@gmail.com</span></a>
</div>
<div class="col-6 col-lg-3 text-right">
<a href="{{ route('login') }}" class="small mr-3">
<span class="icon-lock"></span>
@ -60,7 +55,6 @@
Register
</a>
</div>
</div>
</div>
</div>
@ -68,7 +62,6 @@
<div class="container position-relative">
<div class="site-navigation text-center">
<a href="index.html" class="logo menu-absolute m-0">SIOPAS<span class="text-primary">.</span></a>
<ul class="js-clone-nav d-none d-lg-inline-block site-menu">
<li class="active"><a href="index.html">Home</a></li>
<li class="has-children">
@ -92,52 +85,34 @@
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
<a href="#" class="btn-book btn btn-secondary btn-sm menu-absolute">Enroll Now</a>
{{-- <a href="#" class="btn-book btn btn-secondary btn-sm menu-absolute">Enroll Now</a> --}}
<a href="#"
class="burger ml-auto float-right site-menu-toggle js-menu-toggle d-inline-block d-lg-none light"
data-toggle="collapse" data-target="#main-navbar">
<span></span>
</a>
</div>
</div>
</div>
</nav>
<div class="untree_co-hero overlay"
style="background-image: url('{{ asset('asset_landingpage/images/hero-img-1-min.jpg') }}');">
{{-- style="background-image: url('/public/asset_landingpage/images/hero-img-1-min.jpg');"> --}}
style="background-image: url('{{ asset('asset_landingpage/images/bg1.jpg') }}');">
<div class="container">
<div class="row align-items-center justify-content-center">
<div class="col-12">
<div class="row justify-content-center ">
<div class="col-lg-6 text-center ">
<a href="#" href="https://vimeo.com/342333493" data-fancybox data-aos="fade-up"
data-aos-delay="0" class="caption mb-4 d-inline-block">Watch the video</a>
<h1 class="mb-4 heading text-white" data-aos="fade-up" data-aos-delay="100">Education is
the Mother of Leadership</h1>
<h1 class="mb-4 heading text-white" data-aos="fade-up" data-aos-delay="100">Inventory
Management is the Backbone of Efficiency</h1>
<p class="mb-0" data-aos="fade-up" data-aos-delay="300"><a href="#"
class="btn btn-secondary">Explore courses</a></p>
</div>
</div>
</div>
</div> <!-- /.row -->
</div> <!-- /.container -->
</div> <!-- /.untree_co-hero -->
@ -372,7 +347,7 @@
lesson</span></div>
<div class="review"><span class="icon-star"></span> <span>4.8</span></div>
</div>
<h3>Education Program Title</h3>
<h3>Asset Management Program 1</h3>
<p class="mb-4">Lorem ipsum dolor sit amet once is consectetur adipisicing elit optio.
</p>
<div class="border-top d-flex justify-content-between pt-3 mt-3 align-items-center">
@ -384,15 +359,15 @@
</div>
<div class="col-12 col-sm-6 col-md-6 col-lg-4 mb-4 mb-lg-0">
<div class="custom-media">
<a href="#"><img src="images/img-school-2-min.jpg" alt="Image"
class="img-fluid"></a>
<a href="#"><img src="{{ asset('asset_landingpage/images/img-school-2-min.jpg') }}"
alt="Image" class="img-fluid"></a>
<div class="custom-media-body">
<div class="d-flex justify-content-between pb-3">
<div class="text-primary"><span class="uil uil-book-open"></span> <span>43
lesson</span></div>
<div class="review"><span class="icon-star"></span> <span>4.8</span></div>
</div>
<h3>Education Program Title</h3>
<h3>Asset Management Program 2</h3>
<p class="mb-4">Lorem ipsum dolor sit amet once is consectetur adipisicing elit optio.
</p>
<div class="border-top d-flex justify-content-between pt-3 mt-3 align-items-center">
@ -404,15 +379,15 @@
</div>
<div class="col-12 col-sm-6 col-md-6 col-lg-4 mb-4 mb-lg-0">
<div class="custom-media">
<a href="#"><img src="images/img-school-3-min.jpg" alt="Image"
class="img-fluid"></a>
<a href="#"><img src="{{ asset('asset_landingpage/images/img-school-3-min.jpg') }}"
alt="Image" class="img-fluid"></a>
<div class="custom-media-body">
<div class="d-flex justify-content-between pb-3">
<div class="text-primary"><span class="uil uil-book-open"></span> <span>43
lesson</span></div>
<div class="review"><span class="icon-star"></span> <span>4.8</span></div>
</div>
<h3>Education Program Title</h3>
<h3>Asset Management Program 3</h3>
<p class="mb-4">Lorem ipsum dolor sit amet once is consectetur adipisicing elit optio.
</p>
<div class="border-top d-flex justify-content-between pt-3 mt-3 align-items-center">
@ -426,7 +401,8 @@
</div>
</div>
<div class="untree_co-section pt-0 bg-img overlay" style="background-image: url('images/img-school-1-min.jpg');">
<div class="untree_co-section pt-0 bg-img overlay"
style="background-image: url('{{ asset('asset_landingpage/images/img_3.jpg') }}');">
<div class="container">
<div class="row align-items-center justify-content-center text-center">
<div class="col-lg-7">
@ -479,7 +455,8 @@
<div class="bg-1"></div>
<a href="https://vimeo.com/342333493" data-fancybox class="video-wrap">
<span class="play-wrap"><span class="icon-play"></span></span>
<img src="images/img-school-4-min.jpg" alt="Image" class="img-fluid rounded">
<img src="{{ asset('asset_landingpage/images/img-school-4-min.jpg') }}" alt="Image"
class="img-fluid rounded">
</a>
</div>
</div>
@ -499,7 +476,7 @@
<div class="col-lg-6" data-aos="fade-up" data-aos-delay="100">
<div class="media-h d-flex h-100">
<figure>
<img src="images/img-school-1-min.jpg" alt="Image">
<img src="{{ asset('asset_landingpage/images/img_3.jpg') }}" alt="Image">
</figure>
<div class="media-h-body">
<h2 class="mb-3"><a href="#">Education for Tomorrow's Leaders</a></h2>
@ -515,7 +492,7 @@
<div class="col-lg-6" data-aos="fade-up" data-aos-delay="200">
<div class="media-h d-flex h-100">
<figure>
<img src="images/img-school-2-min.jpg" alt="Image">
<img src="{{ asset('asset_landingpage/images/img-school-2-min.jpg') }}" alt="Image">
</figure>
<div class="media-h-body">
<h2 class="mb-3"><a href="#">Enroll Your Kids This Summer to get 30% off</a></h2>
@ -605,7 +582,8 @@
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right
at the coast of the Semantics, a large language ocean.&rdquo;</p>
<div class="author">
<img src="images/person_1.jpg" alt="Free template by TemplateUX">
<img src="{{ asset('asset_landingpage/images/person_1.jpg') }}"
alt="Free template by TemplateUX">
<h3>John Doe</h3>
<p class="position">CEO, Founder</p>
</div>
@ -621,7 +599,8 @@
and the subline of her own road, the Line Lane. Pityful a rethoric question ran over
her cheek, then she continued her way.&rdquo;</p>
<div class="author">
<img src="images/person_2.jpg" alt="Free template by TemplateUX">
<img src="{{ asset('asset_landingpage/images/person_2.jpg') }}"
alt="Free template by TemplateUX">
<h3>James Woodland</h3>
<p class="position">Designer at Facebook</p>
</div>
@ -636,7 +615,8 @@
necessary regelialia. It is a paradisematic country, in which roasted parts of
sentences fly into your mouth.&rdquo;</p>
<div class="author">
<img src="images/person_3.jpg" alt="Free template by TemplateUX">
<img src="{{ asset('asset_landingpage/images/person_3.jpg') }}"
alt="Free template by TemplateUX">
<h3>Rob Smith</h3>
<p class="position">Product Designer at Twitter</p>
</div>
@ -656,7 +636,8 @@
<div class="container">
<div class="row">
<div class="col-lg-5 mr-auto mb-5 mb-lg-0" data-aos="fade-up" data-aos-delay="0">
<img src="images/img-school-5-min.jpg" alt="image" class="img-fluid">
<img src="{{ asset('asset_landingpage/images/img-school-5-min.jpg') }}" alt="image"
class="img-fluid">
</div>
<div class="col-lg-7 ml-auto" data-aos="fade-up" data-aos-delay="100">
<h3 class="line-bottom mb-4">Why Choose Us</h3>
@ -676,7 +657,8 @@
<div class="accordion-body">
<div class="d-flex">
<div class="accordion-img mr-4">
<img src="images/img-school-1-min.jpg" alt="Image" class="img-fluid">
<img src="{{ asset('asset_landingpage/images/img-school-1-min.jpg') }}"
alt="Image" class="img-fluid">
</div>
<div>
<p>Far far away, behind the word mountains, far from the countries Vokalia
@ -700,7 +682,8 @@
<div class="accordion-body">
<div class="d-flex">
<div class="accordion-img mr-4">
<img src="images/img-school-2-min.jpg" alt="Image" class="img-fluid">
<img src="{{ asset('asset_landingpage/images/img-school-2-min.jpg') }}"
alt="Image" class="img-fluid">
</div>
<div>
<p>Far far away, behind the word mountains, far from the countries Vokalia
@ -724,7 +707,8 @@
<div class="accordion-body">
<div class="d-flex">
<div class="accordion-img mr-4">
<img src="images/img-school-3-min.jpg" alt="Image" class="img-fluid">
<img src="{{ asset('asset_landingpage/images/img-school-3-min.jpg') }}"
alt="Image" class="img-fluid">
</div>
<div>
<p>When she reached the first hills of the Italic Mountains, she had a last
@ -789,23 +773,29 @@
<div class="widget">
<h3>Gallery</h3>
<ul class="instafeed instagram-gallery list-unstyled">
<li><a class="instagram-item" href="images/gal_1.jpg" data-fancybox="gal"><img
src="images/gal_1.jpg" alt="" width="72" height="72"></a>
<li><a class="instagram-item" href="{{ asset('asset_landingpage/images/gal_1.jpg') }}"
data-fancybox="gal"><img src="{{ asset('asset_landingpage/images/gal_1.jpg') }}"
alt="" width="72" height="72"></a>
</li>
<li><a class="instagram-item" href="images/gal_2.jpg" data-fancybox="gal"><img
src="images/gal_2.jpg" alt="" width="72" height="72"></a>
<li><a class="instagram-item" href="{{ asset('asset_landingpage/images/gal_2.jpg') }}"
data-fancybox="gal"><img src="{{ asset('asset_landingpage/images/gal_2.jpg') }}"
alt="" width="72" height="72"></a>
</li>
<li><a class="instagram-item" href="images/gal_3.jpg" data-fancybox="gal"><img
src="images/gal_3.jpg" alt="" width="72" height="72"></a>
<li><a class="instagram-item" href="{{ asset('asset_landingpage/images/gal_3.jpg') }}"
data-fancybox="gal"><img src="{{ asset('asset_landingpage/images/gal_3.jpg') }}"
alt="" width="72" height="72"></a>
</li>
<li><a class="instagram-item" href="images/gal_4.jpg" data-fancybox="gal"><img
src="images/gal_4.jpg" alt="" width="72" height="72"></a>
<li><a class="instagram-item" href="{{ asset('asset_landingpage/images/gal_4.jpg') }}"
data-fancybox="gal"><img src="{{ asset('asset_landingpage/images/gal_4.jpg') }}"
alt="" width="72" height="72"></a>
</li>
<li><a class="instagram-item" href="images/gal_5.jpg" data-fancybox="gal"><img
src="images/gal_5.jpg" alt="" width="72" height="72"></a>
<li><a class="instagram-item" href="{{ asset('asset_landingpage/images/gal_5.jpg') }}"
data-fancybox="gal"><img src="{{ asset('asset_landingpage/images/gal_5.jpg') }}"
alt="" width="72" height="72"></a>
</li>
<li><a class="instagram-item" href="images/gal_6.jpg" data-fancybox="gal"><img
src="images/gal_6.jpg" alt="" width="72" height="72"></a>
<li><a class="instagram-item" href="{{ asset('asset_landingpage/images/gal_6.jpg') }}"
data-fancybox="gal"><img src="{{ asset('asset_landingpage/images/gal_6.jpg') }}"
alt="" width="72" height="72"></a>
</li>
</ul>
</div> <!-- /.widget -->
@ -815,11 +805,11 @@
<div class="col-lg-3">
<div class="widget">
<h3>Contact</h3>
<address>43 Raymouth Rd. Baltemoer, London 3910</address>
<address>Jln Raya Gelarmendala</address>
<ul class="list-unstyled links mb-4">
<li><a href="tel://11234567890">+1(123)-456-7890</a></li>
<li><a href="tel://11234567890">+1(123)-456-7890</a></li>
<li><a href="mailto:info@mydomain.com">info@mydomain.com</a></li>
<li><a href="tel://085159079010">0851 5907 9010</a></li>
<li><a href="tel://085159079010">0851 5907 9010</a></li>
<li><a href="mailto:siopas@gmail.com">siopas@gmail.com</a></li>
</ul>
</div> <!-- /.widget -->
</div> <!-- /.col-lg-3 -->
@ -835,6 +825,7 @@
href="https://untree.co">Untree.co</a> Distributed By <a
href="https://themewagon.com">ThemeWagon</a>
<!-- License information: https://untree.co/license/ -->
</p>
</div>
</div>
</div> <!-- /.container -->

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

@ -33,8 +33,8 @@
</a>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
<div class="bg-white py-2 collapse-inner rounded">
<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="{{ url('/dashboard/barangMasuk') }}">Barang Masuk</a>
<a class="collapse-item" href="{{ url('/dashboard/barangKeluar') }}">Barang Keluar</a>
</div>
</div>
</li>

32
routes/web.php

@ -1,17 +1,19 @@
<?php
use App\Models\m_asset;
use App\Models\asset_status;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\M_userController;
use App\Http\Controllers\M_assetController;
use App\Http\Controllers\ProductController;
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\PengadaanController;
use App\Http\Controllers\TransaksiController;
use App\Http\Controllers\PeminjamanController;
use App\Http\Controllers\BarangMasukController;
use App\Http\Controllers\BarangKeluarController;
use App\Http\Controllers\PengembalianController;
use App\Http\Controllers\PengadaanController;
use App\Http\Controllers\ProductController;
use App\Http\Controllers\M_assetController;
use App\Http\Controllers\M_userController;
use App\Http\Controllers\SettingPlatformController;
use App\Models\asset_status;
use App\Models\m_asset;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
@ -24,9 +26,9 @@ use Illuminate\Support\Facades\Route;
|
*/
Route::get('/coba', function () {
return view('landing_page.layouts.main');
});
// Route::get('/coba', function () {
// return view('landing_page.layouts.main');
// });
Route::get('/logincoba', function () {
// return view('landing_page.login');
return view('login');
@ -37,7 +39,8 @@ Route::get('/logincoba', function () {
Route::get('/', function () {
return view('welcome');
// return view('welcome');
return view('landing_page.layouts.main');
});
Route::middleware('auth')->group(function () {
@ -81,6 +84,13 @@ Route::group(['prefix' => 'dashboard'], function () {
//Halaman Manajemen User
Route::middleware('auth')->resource('/user', M_userController::class);
Route::get('/hapusUser/{id}', [M_userController::class, 'destroy'])->name('hapusUser.destroy');
//Halaman Barang Masuk
Route::middleware('auth')->resource('/barangMasuk', BarangMasukController::class);
//Halaman Barang Keluar
Route::middleware('auth')->resource('/barangKeluar', BarangKeluarController::class);
Route::get('/hapusBarangK/{id}', [BarangKeluarController::class, 'destroy'])->name('hapusBarangK.destroy');
});
require __DIR__ . '/auth.php';

Loading…
Cancel
Save