@extends('selfcheck.layouts.app')
@section('title', 'Team')
@section('page-title', 'Master Data — Team')
@section('content')
@php $emptyForm = ['project_id' => '', 'name' => '', 'description' => '']; @endphp
| No |
Team |
Proyek |
Jumlah Batch |
Aksi |
@forelse ($teams as $i => $team)
| {{ $teams->firstItem() + $i }} |
{{ $team->name }}
@if ($team->description)
{{ $team->description }}
@endif
|
{{ $team->project->name ?? '—' }} |
{{ $team->batches_count }} |
|
@empty
| Belum ada team. |
@endforelse
@if ($teams->hasPages())
{{ $teams->links() }}
@endif
@include('selfcheck.master.partials.modal', [
'title' => 'Team',
'storeRoute' => 'selfcheck.master.teams.store',
'updateUrlBase' => url('selfcheck/master/teams'),
'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 Team', 'type' => 'text', 'required' => true, 'placeholder' => 'Contoh: Install Harness'],
['name' => 'description', 'label' => 'Deskripsi', 'type' => 'textarea'],
],
])
@endsection