@extends('selfcheck.layouts.app') @section('title', 'Team') @section('page-title', 'Master Data — Team') @section('content') @php $emptyForm = ['project_id' => '', 'name' => '', 'description' => '']; @endphp
@forelse ($teams as $i => $team) @empty @endforelse
No Team Proyek Jumlah Batch Aksi
{{ $teams->firstItem() + $i }}

{{ $team->name }}

@if ($team->description)

{{ $team->description }}

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