Avoid mixed-content form submissions behind Coolify by rendering internal links and form actions as relative paths.
32 lines
1.8 KiB
PHP
32 lines
1.8 KiB
PHP
<x-dosen.partials.page-shell :title="$title" :sidebar="$sidebar" :page-title="$pageTitle" :page-description="$pageDescription" :page-date="$pageDate" :user="$user">
|
|
<section class="rounded-xl border border-[#E5E7EB] bg-white p-6 shadow-[0_8px_12px_rgba(13,10,44,0.04)]">
|
|
<form method="POST" action="{{ $formAction }}" class="space-y-6">
|
|
@csrf
|
|
@if ($formMethod !== 'POST')
|
|
@method($formMethod)
|
|
@endif
|
|
|
|
<div>
|
|
<label for="judul_penawaran" class="mb-2 block text-sm font-medium text-[#15171A]">Judul</label>
|
|
<input id="judul_penawaran" type="text" name="judul_penawaran" value="{{ $penawaranItem['judul'] }}" class="template-input" required>
|
|
@error('judul_penawaran')
|
|
<p class="mt-2 text-sm text-rose-600">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label for="keterangan_penawaran" class="mb-2 block text-sm font-medium text-[#15171A]">Keterangan</label>
|
|
<textarea id="keterangan_penawaran" name="keterangan_penawaran" rows="10" class="template-input">{{ $penawaranItem['deskripsi'] }}</textarea>
|
|
@error('keterangan_penawaran')
|
|
<p class="mt-2 text-sm text-rose-600">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="flex flex-wrap gap-3">
|
|
<button type="submit" class="template-button-dark">{{ $formMode === 'create' ? 'Simpan Data' : 'Simpan Perubahan' }}</button>
|
|
<a href="{{ route('dosen.penawaran.index', [], false) }}" class="rounded-md border border-[#D1D5DB] bg-white px-4 py-2.5 text-sm font-medium text-[#15171A] hover:bg-[#F9FAFB]">Kembali</a>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
</x-dosen.partials.page-shell>
|