@extends('layouts.app') @section('title','Laporan Tender') @section('page-title','Laporan Tender') @section('breadcrumb') /Laporan /Tender @endsection @section('content')
{{-- Filter --}}

Filter Laporan

Reset
{{-- Summary Cards — no financial values --}}
@foreach([ ['Total', $data['total'], 'text-gray-800 dark:text-white/90'], ['Aktif', $data['active'], 'text-blue-light-600'], ['Menang', $data['won'], 'text-success-600'], ['Kalah', $data['lost'], 'text-error-600'], ['Dibatalkan',$data['cancelled'], 'text-gray-500'], ['Win Rate', $data['win_rate'].'%', 'text-brand-600'], ] as [$lbl, $val, $color])
{{ $lbl }}

{{ $val }}

@endforeach
{{-- Export toolbar (no financial totals) --}} @can('export_reports')
{{-- Excel dropdown --}} {{-- PDF dropdown --}}
@endcan {{-- Data Table — no estimated_value column --}}

Daftar Tender {{ $data['tenders']->count() }}

@if($data['tenders']->isEmpty())

Tidak ada data untuk filter ini.

@else @foreach($data['tenders'] as $t) @endforeach

Kode

Nama Tender

Klien

Kategori

PIC

Status

Prioritas

Deadline

{{ $t->code }} {{ Str::limit($t->title, 38) }} {{ $t->client?->name ?? '—' }} {{ $t->category?->name ?? '—' }} {{ $t->pic?->name ?? '—' }} {{ $t->submission_deadline?->format('d M Y') ?? '—' }}
@endif
@endsection