@extends('layouts.app') @section('title', 'Pembina Templat') @section('heading', 'Templat Senarai Semak') @section('page-title', 'Pembina: '.$template->name) @section('subtitle', 'Versi '.$template->version.($template->is_active ? ' • Aktif' : '')) @section('actions') Kembali @endsection @section('content') @php($inputTypes = App\Models\ChecklistItem::INPUT_TYPES)
{{ $section->description }}
@endif {{-- Skop --}} @if($section->scopes->isNotEmpty())| Kod | Label | Skop | Token | Jenis | Unit | Wajib | |
|---|---|---|---|---|---|---|---|
| {{ $item->code }} | {{ $item->label }}@if($item->is_calculated)dikira@endif | @if($item->scope){{ $item->scope->code }}@else— Tiada —@endif | {{ $item->formula_token ?: '—' }} |
{{ $inputTypes[$item->input_type] ?? $item->input_type }} | {{ $item->unit ?: '—' }} | {!! $item->is_required ? '' : '—' !!} | |
| Tiada item. | |||||||
Token tersedia: formula_token setiap item & result_token formula sebelumnya. Cth: SKOP1 + SKOP2 + SKOP3, A - B, D / A * 100.
{{ $f->result_token }} = {{ $f->expression }}
Tiada formula.
@endforelse