feat: update intern dashboard to display signed status and prevent modifications for approved internship forms
This commit is contained in:
@@ -465,7 +465,11 @@
|
||||
<div>
|
||||
<h4 class="font-bold text-slate-800 text-base">İmzalanacak Staj Formu</h4>
|
||||
@if($intern->to_be_signed_internship_form_path)
|
||||
@if($intern->signed_internship_form_path)
|
||||
<p class="text-xs text-green-600 font-semibold mt-0.5">Staj formunuz imzalandı ve onaylandı.</p>
|
||||
@else
|
||||
<p class="text-xs text-green-600 font-semibold mt-0.5">Staj formunuz başarıyla yüklendi. İmza işlemleri için hazır.</p>
|
||||
@endif
|
||||
@else
|
||||
<p class="text-xs text-slate-400 mt-0.5">İmzalanmasını istediğiniz staj formunu buradan yükleyebilirsiniz.</p>
|
||||
@endif
|
||||
@@ -478,10 +482,12 @@
|
||||
<i class="uil uil-arrow-down-tray"></i>
|
||||
<span>Görüntüle</span>
|
||||
</a>
|
||||
@if(!$intern->signed_internship_form_path)
|
||||
<button type="button" onclick="document.getElementById('upload-form-wrapper').classList.toggle('hidden')" class="px-4 py-2.5 bg-blue-50 hover:bg-blue-100 text-blue-600 font-bold rounded-xl text-xs transition-all flex items-center justify-center gap-1.5">
|
||||
<i class="uil uil-edit"></i>
|
||||
<span>Değiştir</span>
|
||||
</button>
|
||||
@endif
|
||||
@else
|
||||
<button type="button" onclick="document.getElementById('upload-form-wrapper').classList.toggle('hidden')" class="w-full sm:w-auto px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white font-bold rounded-xl text-sm transition-all flex items-center justify-center gap-2 shadow-md shadow-blue-500/10">
|
||||
<i class="uil uil-plus"></i>
|
||||
@@ -491,7 +497,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Form Upload Dropzone Area -->
|
||||
@if(!$intern->signed_internship_form_path)
|
||||
<div id="upload-form-wrapper" class="{{ $intern->to_be_signed_internship_form_path ? 'hidden' : '' }} mt-4 border-t border-slate-100 pt-4">
|
||||
<form action="{{ route('intern.upload-form') }}" method="POST" enctype="multipart/form-data" class="space-y-4">
|
||||
@csrf
|
||||
@@ -582,6 +588,7 @@
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<!-- Signed Internship Form Card -->
|
||||
|
||||
Reference in New Issue
Block a user