@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) {{-- Header Tombol --}}
{{-- Form Content --}}
@csrf

Form Pengajuan Resign


@foreach ($table_header as $header)
{{-- Tipe Image --}} @if ($header->type == 'image') @php $imageValue = $employee->{$header->field} ?? null; $isUrl = $imageValue && (str_starts_with($imageValue, 'http://') || str_starts_with($imageValue, 'https://')); $thumbPath = 'storage/' . $imageValue . 'tumb.png'; $fullPath = 'storage/' . $imageValue; $defaultImage = asset('img/profile.png'); if ($isUrl) { $imageUrl = $imageValue; } elseif ( !empty($imageValue) && file_exists(public_path($thumbPath)) ) { $imageUrl = asset($thumbPath); } elseif ( !empty($imageValue) && file_exists(public_path($fullPath)) ) { $imageUrl = asset($fullPath); } else { $imageUrl = $defaultImage; } @endphp
image
@else @if ($header->field == 'nama') @if (!isset($fromEmployee) || !$fromEmployee)
@else @endif @else @endif @endif
@endforeach {{-- Tanggal Proses --}}
{{-- Modal Pencarian Karyawan --}} @endsection @push('js') @endpush