@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
@forelse ($executionTypes as $i => $type) @empty @endforelse
No Type Eksekusi Proyek Aksi
{{ $executionTypes->firstItem() + $i }}
@if ($type->logoUrl()) Logo {{ $type->name }} @else @endif

{{ $type->name }}

@if ($type->description)

{{ $type->description }}

@endif
{{ $type->project->name ?? '—' }}
@csrf @method('DELETE')
Belum ada type eksekusi.
@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