Browse Source

update revisi tampilan

master
Gunawan19621 1 year ago
parent
commit
13a390e0dc
  1. 7
      app/Http/Controllers/M_assetController.php
  2. 25
      app/Http/Controllers/M_userController.php
  3. 7
      app/Http/Controllers/PeminjamanController.php
  4. 34
      app/Http/Controllers/PengembalianController.php
  5. 21
      app/Http/Controllers/WarehouseController.php
  6. 5
      app/Models/asset_status.php
  7. 4
      database/migrations/2023_09_20_163615_create_m_warehouses_table.php
  8. 8
      database/migrations/2023_09_20_163641_create_asset_statuses_table.php
  9. 8
      resources/views/MasterData/asset.blade.php
  10. 46
      resources/views/MasterData/warehouse.blade.php
  11. 54
      resources/views/dashboard/peminjaman.blade.php
  12. 82
      resources/views/dashboard/pengembalian.blade.php
  13. 31
      resources/views/dashboard/update_pengembalian.blade.php
  14. 103
      resources/views/login.blade.php

7
app/Http/Controllers/M_assetController.php

@ -177,11 +177,14 @@ class M_assetController extends Controller
$dompdf->render();
// Tampilkan PDF di browser
return $dompdf->stream('Laporan Barang');
return $dompdf->stream('Laporan Assets');
}
/**
* Cetak Exel.
*/
public function export()
{
return Excel::download(new AssetExport, 'Assets.xlsx');
return Excel::download(new AssetExport, 'Laporan Assets.xlsx');
}
}

25
app/Http/Controllers/M_userController.php

@ -33,30 +33,6 @@ class M_userController extends Controller
/**
* Store a newly created resource in storage.
*/
// public function store(Request $request)
// {
// $request->validate([
// 'username' => 'required',
// 'fullname' => 'required',
// 'email' => 'required|email',
// 'divisi' => 'required',
// 'role_id' => 'required',
// 'warehouse_id' => 'required',
// 'password' => 'required',
// ]);
// try {
// $currentUser = Auth::user();
// $validatedData = $request->except('_token');
// $validatedData['created_by'] = $currentUser->name; // Menggunakan nama pengguna sebagai created_by
// $validatedData['updated_by'] = $currentUser->name; // Menggunakan nama pengguna sebagai updated_by
// $validatedData['password'] = bcrypt($request->input('password')); // Enkripsi password
// user::create($validatedData);
// return redirect()->back()->with('success', 'Data User Berhasil Ditambah.');
// } catch (\Throwable $th) {
// return redirect()->back()->with('error', 'Data User Gagal Ditambah.');
// }
// }
public function store(Request $request)
{
$request->validate([
@ -126,7 +102,6 @@ class M_userController extends Controller
$userData['updated_by'] = Auth::user()->fullname;
$user->update($userData);
return redirect()->route('user.index')->with('success', 'Data User berhasil diperbaharui');
} catch (\Throwable $th) {
return redirect()->back()->with('error', 'Data User gagal diperbaharui');

7
app/Http/Controllers/PeminjamanController.php

@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use App\Models\asset_status;
use App\Models\m_asset;
use App\Models\m_warehouse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
@ -16,7 +17,8 @@ class PeminjamanController extends Controller
{
$asset = m_asset::all();
$peminjaman = asset_status::get();
return view('dashboard.peminjaman', compact('asset', 'peminjaman'));
$warehouse = m_warehouse::get();
return view('dashboard.peminjaman', compact('asset', 'peminjaman', 'warehouse'));
}
/**
@ -86,8 +88,7 @@ class PeminjamanController extends Controller
// dd($request);
try {
$peminjaman = asset_status::findOrFail($id);
// dd($peminjaman);
// dd($request->all());
$peminjaman['updated_by'] = Auth::user()->fullname; // Menambahkan ID pengguna sebagai updated_by
$peminjaman->update($request->all());
return redirect()->back()->with('success', 'Data peminjaman berhasil diperbaharui');
} catch (\Throwable $th) {

34
app/Http/Controllers/PengembalianController.php

@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use App\Models\asset_status;
use App\Models\m_asset;
use App\Models\m_warehouse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
@ -37,8 +38,9 @@ class PengembalianController extends Controller
*/
public function show($id)
{
$warehouse = m_warehouse::get();
$peminjaman = asset_status::findOrFail($id);
return view('dashboard.update_pengembalian', compact('peminjaman'));
return view('dashboard.update_pengembalian', compact('peminjaman', 'warehouse'));
}
/**
@ -55,20 +57,18 @@ class PengembalianController extends Controller
public function update(Request $request, $id)
{
// dd('oke');
// dd($request->all());
$request->validate([
'asset_id' => 'required',
'exit_at' => 'required',
'exit_pic' => 'required',
'exit_warehouse' => 'required',
'enter_at' => 'required',
'enter_pic' => 'required',
'enter_warehouse' => 'required',
]);
// dd($request);
try {
$peminjaman = asset_status::findOrFail($id);
// dd($peminjaman);
// dd($request->all());
$peminjaman['updated_by'] = Auth::user()->fullname; // Menambahkan ID pengguna sebagai updated_by
$peminjaman->update($request->all());
return redirect()->route('pengembalian.index')->with('success', 'Data peminjaman berhasil diperbaharui');
} catch (\Throwable $th) {
@ -76,6 +76,30 @@ class PengembalianController extends Controller
return redirect()->back()->with('error', 'Data peminjaman gagal diperbaharui');
}
}
// public function update(Request $request, $id)
// {
// // dd('oke');
// $request->validate([
// 'asset_id' => 'required',
// 'exit_at' => 'required',
// 'exit_pic' => 'required',
// 'exit_warehouse' => 'required',
// 'enter_at' => 'required',
// 'enter_pic' => 'required',
// 'enter_warehouse' => 'required',
// ]);
// // dd($request);
// try {
// $peminjaman = asset_status::findOrFail($id);
// // dd($peminjaman);
// // dd($request->all());
// $peminjaman->update($request->all());
// return redirect()->route('pengembalian.index')->with('success', 'Data peminjaman berhasil diperbaharui');
// } catch (\Throwable $th) {
// // dd($th->getMessage());
// return redirect()->back()->with('error', 'Data peminjaman gagal diperbaharui');
// }
// }
/**
* Remove the specified resource from storage.

21
app/Http/Controllers/WarehouseController.php

@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use App\Models\m_warehouse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class WarehouseController extends Controller
{
@ -36,7 +37,10 @@ class WarehouseController extends Controller
'address' => 'required',
]);
try {
$currentUser = Auth::user();
$validatedData = $request->except('_token');
$validatedData['created_by'] = $currentUser->fullname; // Menggunakan nama pengguna sebagai created_by
$validatedData['updated_by'] = $currentUser->fullname; // Menggunakan nama pengguna sebagai updated_by
m_warehouse::create($validatedData);
return redirect()->back()->with('success', 'Data gudang berhasil ditambah.');
} catch (\Throwable $th) {
@ -67,6 +71,23 @@ class WarehouseController extends Controller
public function update(Request $request, $id)
{
// dd('oke');
$request->validate([
'name' => 'required',
'description' => 'required',
'address' => 'required',
]);
// dd($request);
try {
$warehouse = m_warehouse::findOrFail($id);
$warehouse->update($request->all());
// Menambahkan nama pengguna yang melakukan pembaruan
$userData['updated_by'] = Auth::user()->fullname;
return redirect()->back()->with('success', 'Data Gudang Berhasil Diperbaharui');
} catch (\Throwable $th) {
return redirect()->back()->with('error', 'Data Gudang Gagal Diperbaharui');
}
}
/**

5
app/Models/asset_status.php

@ -14,4 +14,9 @@ class asset_status extends Model
{
return $this->belongsTo(m_asset::class, 'asset_id');
}
public function warehouse()
{
return $this->belongsTo(m_warehouse::class, 'exit_warehouse');
}
}

4
database/migrations/2023_09_20_163615_create_m_warehouses_table.php

@ -19,8 +19,8 @@ return new class extends Migration
$table->text('address')->nullable();
$table->timestamps();
$table->softDeletes();
$table->string('created_by', 200)->nullable()->default('System');
$table->string('updated_by', 200)->nullable()->default('System');
$table->string('created_by', 200)->nullable();
$table->string('updated_by', 200)->nullable();
});
DB::table('m_warehouses')->insert([

8
database/migrations/2023_09_20_163641_create_asset_statuses_table.php

@ -17,10 +17,14 @@ return new class extends Migration
$table->foreign('asset_id')->references('id')->on('m_assets')->onDelete('cascade');
$table->datetime('exit_at');
$table->string('exit_pic', 200);
$table->string('exit_warehouse', 200);
// $table->string('exit_warehouse', 200);
$table->bigInteger('exit_warehouse')->unsigned()->nullable();
$table->foreign('exit_warehouse')->references('id')->on('m_warehouses')->onDelete('cascade');
$table->datetime('enter_at')->nullable();
$table->string('enter_pic', 200)->nullable();
$table->string('enter_warehouse', 200)->nullable();
// $table->string('enter_warehouse', 200)->nullable();
$table->bigInteger('enter_warehouse')->unsigned()->nullable();
$table->foreign('enter_warehouse')->references('id')->on('m_warehouses')->onDelete('cascade');
$table->timestamps();
$table->softDeletes();
$table->string('created_by', 200);

8
resources/views/MasterData/asset.blade.php

@ -2,14 +2,6 @@
@section('title', 'Setting Platform')
@section('content')
<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">

46
resources/views/MasterData/warehouse.blade.php

@ -2,7 +2,6 @@
@section('title', 'Update Data User')
@section('content')
<div class="container-fluid">
{{-- <h4>Halaman management warehouse</h4> --}}
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
@ -14,13 +13,13 @@
data-target="#tambahDataModal">
<span class="text">+ Tambah data</span>
</a>
<a href="{{ route('assetcetakpdf.cetakpdf') }}" class="btn btn-success btn-icon-split ml-auto"
{{-- <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>
<span class="text">Cetak Exel</span> --}}
</a>
</div>
</div>
@ -76,7 +75,7 @@
</div>
</div>
<!-- Modal Tambah Asset-->
<!-- Modal Tambah-->
<div class="modal fade" id="tambahDataModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
@ -110,4 +109,43 @@
</div>
</div>
</div>
<!-- Modal Edit Data-->
@foreach ($warehouses 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('warehouse.update', $data->id) }}" method="POST"
enctype="multipart/form-data">
@csrf
@method('PUT')
<div class="form-group">
<label for="name" class="col-form-label">Nama:</label>
<input class="form-control" name="name" type="text" id="name"
value="{{ $data->name }}" placeholder="Masukan Nama Gudang" required>
<label for="description" class="col-form-label">Deskripsi:</label>
<textarea class="form-control" name="description" id="description" placeholder="Masukkan Deskripsi Gudang" required>{{ $data->description }}</textarea>
<label for="address" class="col-form-label">Alamat:</label>
<textarea class="form-control" name="address" id="address" placeholder="Masukkan Alamat Gudang" required>{{ $data->address }}</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>
@endforeach
@endsection

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

@ -5,16 +5,34 @@
<!-- <h1 class="h3 mb-2 text-gray-800">Tabel Peminjaman</h1> -->
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Data Peminjaman</h6>
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Data Peminjaman</h5>
</div>
<div class="col-6 text-right">
<a href="#" class="btn btn-success btn-icon-split" data-toggle="modal"
data-target="#tambahDataModal">
<span class="text">+ Tambah data</span>
</a>
{{-- <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</th>
<th class="text-center">No</th>
<th>Nama Asset</th>
<th>Tgl Keluar</th>
<th>Tgl Peminjaman</th>
<th>PJ Keluar</th>
<th>Asal Gudang</th>
<th class="text-center">Action</th>
@ -22,9 +40,9 @@
</thead>
<tfoot>
<tr>
<th>No</th>
<th class="text-center">No</th>
<th>Nama Asset</th>
<th>Tgl Keluar</th>
<th>Tgl Peminjaman</th>
<th>PJ Keluar</th>
<th>Asal Gudang</th>
<th class="text-center">Action</th>
@ -36,11 +54,11 @@
@endphp
@foreach ($peminjaman as $data)
<tr>
<td>{{ $no_peminjaman++ }}</td>
<td class="text-center">{{ $no_peminjaman++ }}</td>
<td>{{ $data->asset->name }}</td>
<td>{{ \Carbon\Carbon::parse($data->exit_at)->format('d-m-Y') }}</td>
<td>{{ $data->exit_pic }}</td>
<td>{{ $data->exit_warehouse }}</td>
<td>{{ $data->warehouse->name }}</td>
<td class="text-center">
<a href="#" data-toggle="modal"
data-target="#editDataModal{{ $data['id'] }}">
@ -93,9 +111,15 @@
oninput="this.value=this.value.replace(/[0-9]/g,'');" required>
<label for="exit_warehouse" class="col-form-label">Asal Gudang :</label>
<input class="form-control" name="exit_warehouse" type="text" id="exit_warehouse"
<select class="form-control" name="exit_warehouse" type="text" id="exit_warehouse">
<option disabled selected>Pilih Asal Gudang</option>
@foreach ($warehouse as $data)
<option value="{{ $data->id }}">{{ $data->name }}</option>
@endforeach
</select>
{{-- <input class="form-control" name="exit_warehouse" type="text" id="exit_warehouse"
value="{{ old('exit_warehouse') }}" placeholder="Masukan Asal gudang keluarnya asset"
required>
required> --}}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Tutup</button>
@ -134,7 +158,6 @@
@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"
@ -147,8 +170,15 @@
oninput="this.value=this.value.replace(/[0-9]/g,'');" 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 Nama PJ Keluar" required>
<select class="form-control" name="exit_warehouse" type="text" id="exit_warehouse">
<option disabled selected>Pilih Nama Asset</option>
@foreach ($warehouse as $data_warehouse)
<option value="{{ $data_warehouse->id }}"
@if ($data_warehouse->id == $data->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>

82
resources/views/dashboard/pengembalian.blade.php

@ -5,7 +5,7 @@
<!-- <h1 class="h3 mb-2 text-gray-800">Tabel Pengembalian</h1> -->
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Data Asset</h6>
<h6 class="m-0 font-weight-bold text-primary">Data Pengembalian</h6>
</div>
<div class="card-body">
<div class="table-responsive">
@ -14,11 +14,11 @@
<tr>
<th>No</th>
<th>Nama Asset</th>
<th>Tgl Keluar</th>
<th>PJ Keluar</th>
<th>Tgl Peinjaman</th>
<th>PJ Peinjaman</th>
<th>Asal Gudang</th>
<th>Tgl Masuk</th>
<th>PJ Masuk</th>
<th>Tgl Pengembalian</th>
<th>PJ Pengembalian</th>
<th>Tujuan Gudang</th>
<th>Status</th>
<th class="text-center">Action</th>
@ -28,11 +28,11 @@
<tr>
<th>No</th>
<th>Nama Asset</th>
<th>Tgl Keluar</th>
<th>PJ Keluar</th>
<th>Tgl Peinjaman</th>
<th>PJ Peinjaman</th>
<th>Asal Gudang</th>
<th>Tgl Masuk</th>
<th>PJ Masuk</th>
<th>Tgl Pengembalian</th>
<th>PJ Pengembalian</th>
<th>Tujuan Gudang</th>
<th>Status</th>
<th class="text-center">Action</th>
@ -48,7 +48,7 @@
<td>{{ $data->asset->name }}</td>
<td>{{ \Carbon\Carbon::parse($data->exit_at)->format('d-m-Y') }}</td>
<td>{{ $data->exit_pic }}</td>
<td>{{ $data->exit_warehouse }}</td>
<td>{{ $data->warehouse->name }}</td>
<td>
@if ($data->enter_at)
{{ \Carbon\Carbon::parse($data->enter_at)->format('d-m-Y') }}
@ -65,7 +65,7 @@
</td>
<td>
@if ($data->enter_warehouse)
{{ $data->enter_warehouse }}
{{ $data->warehouse->name }}
@else
<p class="text-center font-weight-bold">-</p>
@endif
@ -91,64 +91,4 @@
</div>
</div>
<!-- /.container-fluid -->
<!-- Modal Edit Asset-->
{{-- @foreach ($peminjaman 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">Update Tanggal Pengembalian</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('pengembalian.update', $data->id) }}" method="POST"
enctype="multipart/form-data">
@csrf
@method('PUT')
<div class="form-group">
<label for="asset_id" class="col-form-label">Nama Asset:</label>
<input class="form-control" name="asset_id" type="text" id="asset_id"
value="{{ $data->asset->name }}" readonly required>
<label for="exit_at" class="col-form-label">Tanggal Peminjaman:</label>
<input class="form-control" name="exit_at" type="date" id="exit_at"
value="{{ \Carbon\Carbon::parse($data->exit_at)->format('Y-m-d') }}"
placeholder="Masukan Tanggal Keluar" readonly required>
<label for="exit_pic" class="col-form-label">PJ Keluar:</label>
<input class="form-control" name="exit_pic" type="text" id="exit_pic"
value="{{ $data->exit_pic }}" placeholder="Masukan Nama PJ Keluar" readonly 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 Nama PJ Keluar" readonly
required>
<label for="enter_at" class="col-form-label">Tanggal Pengembalian:</label>
<input class="form-control" name="enter_at" type="date" id="enter_at"
value="{{ old('enter_at') }}" placeholder="Masukan Tanggal Pengembalian" required>
<label for="enter_pic" class="col-form-label">PJ Pengembalian:</label>
<input class="form-control" name="enter_pic" type="text" id="enter_pic"
value="{{ old('enter_pic') }}" placeholder="Masukan Nama PJ Pengembalian" required>
<label for="enter_warehouse" class="col-form-label">Tujuan Pengembalian GUdang:</label>
<input class="form-control" name="enter_warehouse" type="text" id="enter_warehouse"
value="{{ old('enter_warehouse') }}" placeholder="Masukan tujuan pengembalian"
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>
@endforeach --}}
@endsection

31
resources/views/dashboard/update_pengembalian.blade.php

@ -27,13 +27,22 @@
value="{{ $peminjaman->exit_pic }}" placeholder="Masukan Nama PJ Keluar" readonly 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="{{ $peminjaman->exit_warehouse }}" placeholder="Masukan Nama PJ Keluar" readonly required>
{{-- <select class="form-control" name="enter_warehouse" id="enter_warehouse" required>
<option disabled selected>Pilih Nama Asset</option>
@foreach ($warehouse as $data_warehouse)
<option value="{{ $data_warehouse->id }}"
{{ $data_warehouse->id == $peminjaman->enter_warehouse ? 'selected' : '' }}>
{{ $data_warehouse->name }}
</option>
@endforeach
</select> --}}
<input type="hidden" name="exit_warehouse" id="exit_warehouse"
value="{{ $peminjaman->exit_warehouse }}">
<input class="form-control" type="text" value="{{ $peminjaman->warehouse->name }}" readonly required>
{{-- <input class="form-control" name="exit_warehouse" type="text" id="exit_warehouse"
value="{{ $peminjaman->warehouse->id }}" placeholder="Masukan Nama PJ Keluar" readonly required> --}}
<label for="enter_at" class="col-form-label">Tanggal Pengembalian:</label>
{{-- <input class="form-control" name="enter_at" type="date" id="enter_at"
value="{{ old('enter_at', $peminjaman->enter_at) }}" placeholder="Masukan Tanggal Pengembalian"
required> --}}
<input class="form-control" name="enter_at" type="date" id="enter_at"
value="{{ \Carbon\Carbon::parse($peminjaman->enter_at)->format('Y-m-d') }}"
placeholder="Masukan Tanggal Asset" required>
@ -44,9 +53,15 @@
pattern="[^0-9]+" oninput="this.value=this.value.replace(/[0-9]/g,'');" required>
<label for="enter_warehouse" class="col-form-label">Tujuan Pengembalian Gudang:</label>
<input class="form-control" name="enter_warehouse" type="text" id="enter_warehouse"
value="{{ old('enter_warehouse', $peminjaman->enter_warehouse) }}"
placeholder="Masukan tujuan pengembalian" required>
<select class="form-control" name="enter_warehouse" type="text" id="enter_warehouse">
<option disabled selected>Pilih Nama Asset</option>
@foreach ($warehouse as $data_warehouse)
<option value="{{ $data_warehouse->id }}"
@if ($data_warehouse->id == $peminjaman->enter_warehouse) selected
@else @endif>
{{ $data_warehouse->name }}</option>
@endforeach
</select>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary"

103
resources/views/login.blade.php

@ -1,103 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Login SIOPAS</title>
<!-- Custom fonts for this template-->
<link href="{{ asset('assets/vendor/fontawesome-free/css/all.min.css') }}" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
rel="stylesheet">
<!-- Custom styles for this template-->
<link href="{{ asset('assets/css/sb-admin-2.min.css') }}" rel="stylesheet">
</head>
<body class="bg-gradient-primary">
<div class="container">
<!-- Outer Row -->
<div class="row justify-content-center">
<div class="col-xl-10 col-lg-12 col-md-9">
<div class="card o-hidden border-0 shadow-lg my-5">
<div class="card-body p-0">
<!-- Nested Row within Card Body -->
<div class="row">
<div class="col-lg-6 d-none d-lg-block bg-login-image"></div>
<div class="col-lg-6">
<div class="p-5">
<div class="text-center">
<h1 class="h4 text-gray-900 mb-4">Welcome Back!</h1>
</div>
<form class="user">
<div class="form-group">
<input type="email" class="form-control form-control-user"
id="exampleInputEmail" aria-describedby="emailHelp"
placeholder="Enter Email Address...">
</div>
<div class="form-group">
<input type="password" class="form-control form-control-user"
id="exampleInputPassword" placeholder="Password">
</div>
<div class="form-group">
<div class="custom-control custom-checkbox small">
<input type="checkbox" class="custom-control-input" id="customCheck">
<label class="custom-control-label" for="customCheck">Remember
Me</label>
</div>
</div>
<a href="{{ url('/') }}" class="btn btn-primary btn-user btn-block">
Login
</a>
<hr>
<a href="#" class="btn btn-google btn-user btn-block">
<i class="fab fa-google fa-fw"></i> Login with Google
</a>
<a href="#" class="btn btn-facebook btn-user btn-block">
<i class="fab fa-facebook-f fa-fw"></i> Login with Facebook
</a>
</form>
<hr>
<div class="text-center">
<a class="small" href="{{ url('/forgot_password') }}">Forgot Password?</a>
</div>
<div class="text-center">
<a class="small" href="{{ url('/register') }}">Create an Account!</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="{{ asset('assets/vendor/jquery/jquery.min.js') }}"></script>
<script src="{{ asset('assets/vendor/bootstrap/js/bootstrap.bundle.min.js') }}"></script>
<!-- Core plugin JavaScript-->
<script src="{{ asset('assets/vendor/jquery-easing/jquery.easing.min.js') }}"></script>
<!-- Custom scripts for all pages-->
<script src="{{ asset('assets/js/sb-admin-2.min.js') }}"></script>
</body>
</html>
Loading…
Cancel
Save