@extends('layouts.app') @section('title', "Proposal {$proposal->code} — {$version->version_label}") @section('page-title','Detail Versi Proposal') @section('breadcrumb') /Data Proposal /{{ $proposal->code }} /{{ $version->version_label }} @endsection @section('content') {{-- ====================================================== READ-ONLY BANNER ====================================================== --}} @if(!$isCurrentVersion)

Anda sedang melihat Proposal Version {{ $version->version_label }}

Version ini adalah histori dan tidak dapat diedit. Untuk mengubah, buat versi baru dari versi terkini.

Versi Terkini
@else

Ini adalah versi terkini dari proposal ini.

Kembali ke Detail
@endif {{-- ====================================================== HEADER ====================================================== --}}
{{ $proposal->code }} V{{ $version->version_number }} {{ $version->revision_label }} @if($version->status) @php try { $vStatus = \App\Enums\ProposalStatus::from($version->status); } catch (\ValueError $e) { $vStatus = null; } @endphp @if($vStatus)@endif @endif

{{ $version->title ?? $proposal->title }}

Tender: {{ $proposal->tender?->title }} · {{ $proposal->tender?->client?->name }}

{{-- No edit button for version view — read-only --}} ← Kembali
{{-- ====================================================== VERSION DETAIL ====================================================== --}}

Snapshot Data — {{ $version->version_label }}

PIC

{{ $proposal->pic?->name ?? '—' }}

Deadline

{{ $version->deadline?->format('d M Y') ?? '—' }}

Valid Hingga

{{ $version->valid_until?->format('d M Y') ?? '—' }}

Dibuat pada

{{ $version->created_at->format('d M Y, H:i') }}

{{-- Financial field — masked, AJAX loaded --}}
@if($version->description)

Deskripsi

{{ $version->description }}

@endif @if($version->change_notes)

Catatan Revisi

{{ $version->change_notes }}

@endif
{{-- Right sidebar --}}
{{-- Version Navigation --}}

Semua Versi

@foreach($proposal->versions->sortByDesc('version_number') as $v) @php $isThis = $v->id === $version->id; @endphp
V{{ $v->version_number }}

{{ $v->version_label }} @if($v->version_number === $proposal->current_version) Current @endif

{{ $v->created_at->format('d M Y') }}

@endforeach
{{-- Version created by --}}

Tentang Versi Ini

Versi {{ $version->version_label }}
Dibuat oleh {{ $version->creator?->name ?? '—' }}
Dibuat pada {{ $version->created_at->format('d M Y, H:i') }}
@endsection