@extends('selfcheck.layouts.app') @section('title', 'Jumlah Car') @section('page-title', 'Master Data — Jumlah Car') @section('content') @php $emptyForm = ['project_id' => (string) ($project->id ?? ''), 'firstname' => '']; @endphp
{{-- Pilih Proyek --}}
@if (! $project)
Pilih proyek terlebih dahulu untuk mengatur jumlah & nama car.
@else
{{-- Atur jumlah --}}
@csrf

Jumlah car sama untuk semua trainset di proyek ini.

@forelse ($cars as $car) @empty @endforelse
No Nama Car (Firstname) Aksi
{{ $car->sort_order }} {{ $car->firstname !== '' ? $car->firstname : '—' }}
@csrf @method('DELETE')
Belum ada slot car. Atur jumlah car di atas.
@include('selfcheck.master.partials.modal', [ 'title' => 'Slot Car', 'storeRoute' => 'selfcheck.master.cars.store', 'updateUrlBase' => url('selfcheck/master/cars'), 'fields' => [ ['name' => 'project_id', 'type' => 'hidden'], ['name' => 'firstname', 'label' => 'Nama Car (Firstname)', 'type' => 'text', 'required' => true, 'placeholder' => 'Contoh: Car 1'], ], ]) @endif
@endsection