Tambahkan fitur pembayaran dan perbaikan tampilan terkait

- Tambah file migration untuk update tabel `persetujuan_penawaran` dengan relasi baru.
- Tambah fungsi baru di controller pembayaran: `edit`, `store`, `update`, dan `approval`.
- Perbarui view daftar pembayaran dan tambahkan form pembayaran baru.
- Tambah endpoint dan breadcrumbs untuk fitur pembayaran di routes.
This commit is contained in:
Daeng Deni Mardaeni
2024-12-23 20:12:56 +07:00
parent bbe44ff3fa
commit c90535b5ba
6 changed files with 317 additions and 161 deletions

View File

@@ -0,0 +1,33 @@
<?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::table('persetujuan_penawaran', function (Blueprint $table) {
$table->unsignedBigInteger('penawaran_id')->change()->nullable();
$table->unsignedBigInteger('permohonan_id')->nullable();
$table->foreign('permohonan_id')->references('id')->on('permohonan')->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('persetujuan_penawaran', function (Blueprint $table) {
$table->unsignedBigInteger('penawaran_id')->change()->nullable(false);
$table->dropForeign('persetujuan_penawaran_permohonan_id_foreign');
$table->dropColumn('permohonan_id');
});
}
};