@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 --}}
Jumlah car sama untuk semua trainset di proyek ini.
| No |
Nama Car (Firstname) |
Aksi |
@forelse ($cars as $car)
| {{ $car->sort_order }} |
{{ $car->firstname !== '' ? $car->firstname : '—' }} |
|
@empty
| Belum ada slot car. Atur jumlah car di atas. |
@endforelse
@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