@extends('layouts.app') @section('title', '契約書一覧') @section('page-title', '契約書一覧') @section('page-subtitle') 送受信した文書を管理・検索します。文書管理番号・相手方・契約日・金額などで絞り込めます(CSV 出力対応)。 @endsection @section('content')
@php $activeCompanyTab = $activeCompanyTab ?? 'all'; $showCompanyTabs = ($businessSettings ?? collect())->isNotEmpty() || ($unassignedCount ?? 0) > 0; $companyTabBaseQuery = collect($filters ?? [])->except('company')->filter(fn ($v) => $v !== null && $v !== '')->all(); @endphp @if($showCompanyTabs) @endif| 文書管理番号 | 文書名 | @if($showCompanyTabs && $activeCompanyTab === 'all')対応会社 | @endif相手方 | ステータス | 契約日 | 満了日 | 金額 | 登録日時 | 操作 |
|---|---|---|---|---|---|---|---|---|---|
| {{ $instance->document_number ?? '—' }} | {{ $instance->title }} | @if($showCompanyTabs && $activeCompanyTab === 'all'){{ $instance->businessSetting?->displayName() ?? '—' }} | @endif{{ $instance->counterparty ?: '—' }} | {{ $instance->statusLabel() }} | {{ $instance->contract_date?->format('Y-m-d') ?? '—' }} | {{ $instance->contract_expires_at?->format('Y-m-d') ?? '—' }} | @if($instance->amount !== null){{ number_format((float)$instance->amount) }} {{ $instance->amount_currency }}@else — @endif | {{ $instance->created_at?->format('Y-m-d H:i') }} | 開く |