@extends('selfcheck.layouts.app')
@section('title', 'Type Eksekusi')
@section('page-title', 'Master Data — Type Eksekusi')
@section('content')
@php $emptyForm = ['project_id' => '', 'name' => '', 'description' => '', 'logo_url' => '']; @endphp
| No |
Type Eksekusi |
Proyek |
Aksi |
@forelse ($executionTypes as $i => $type)
| {{ $executionTypes->firstItem() + $i }} |
@if ($type->logoUrl())
 }})
@else
@endif
{{ $type->name }}
@if ($type->description)
{{ $type->description }}
@endif
|
{{ $type->project->name ?? '—' }} |
|
@empty
| Belum ada type eksekusi. |
@endforelse
@if ($executionTypes->hasPages())
{{ $executionTypes->links() }}
@endif
@include('selfcheck.master.partials.modal', [
'title' => 'Type Eksekusi',
'storeRoute' => 'selfcheck.master.execution-types.store',
'updateUrlBase' => url('selfcheck/master/execution-types'),
'fields' => [
['name' => 'project_id', 'label' => 'Proyek', 'type' => 'select', 'required' => true,
'options' => $projects->map(fn ($p) => ['value' => $p->id, 'label' => $p->name])->all()],
['name' => 'name', 'label' => 'Nama Type Eksekusi', 'type' => 'text', 'required' => true, 'placeholder' => 'Contoh: Koneksi'],
['name' => 'description', 'label' => 'Deskripsi', 'type' => 'textarea'],
['name' => 'logo', 'label' => 'Logo', 'type' => 'file', 'accept' => 'image/*', 'previewKey' => 'logo_url',
'hint' => 'Format gambar, maksimal 300KB. Biarkan kosong bila tidak mengganti logo.'],
],
])
@endsection