Update BUMDes

This commit is contained in:
2026-11-05 19:20:05 +07:00
parent 9cdd178297
commit c55ff109a0
73 changed files with 6699 additions and 1548 deletions
+19 -30
View File
@@ -1,39 +1,28 @@
@extends('layout.main')
@section('content')
<div class="container-xxl flex-grow-1 container-p-y">
@if (session('success'))
<div class="alert alert-success">{{ session('success') }}</div>
@endif
@if ($errors->any())
<div class="alert alert-danger">
<ul class="mb-0">
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="container-xxl flex-grow-1 container-p-y bumdes-page">
@include('bumdes.profil.header', ['pengurus' => $pengurus])
<div class="card mb-6">
<div class="card-header border-bottom">
<h5 class="card-title mb-0">Edit Profil Pengurus BUMDes</h5>
</div>
<div class="card-body pt-6">
<form id="editBumdesForm" action="{{ route('bumdes.update', $pengurus->id) }}" method="POST">
@csrf
@method('PUT')
@include('bumdes.profil._form', ['pengurus' => $pengurus, 'mode' => 'edit'])
<form data-bumdes-profile data-prefix="edit-bumdes"
data-jabatan-lainnya="{{ \App\Enums\Bumdes\JabatanBumdes::LAINNYA->value }}"
data-kabupaten-url="{{ route('kabupatenkota.byprovinsi', ':id') }}"
data-kecamatan-url="{{ route('kecamatan.bykabupatenkota', ':id') }}"
data-desa-url="{{ route('desakelurahan.bykecamatan', ':id') }}"
novalidate id="editBumdesForm" action="{{ route('bumdes.update', $pengurus->id) }}" method="POST">
@csrf
@method('PUT')
<div class="mt-4 text-end">
<a href="{{ route('bumdes.index') }}" class="btn btn-secondary me-2 wave-effect wave-light">Kembali</a>
<button type="submit" class="btn btn-success data-submit wave-effect wave-light"><i class="ti tabler-device-floppy me-2"></i> Simpan Profil</button>
</div>
</form>
<div class="card mb-6">
<div class="card-body pt-6">
@include('bumdes.profil._form', ['pengurus' => $pengurus, 'mode' => 'edit'])
@include('bumdes.profil._keaktifan')
<x-bumdes-form-actions redirect-fragment="section-kepengurusan" />
</div>
</div>
</div>
@include('bumdes.profil._kepengurusan')
</form>
</div>
@endsection