{{-- SAHA PLANI SATIRI — sondaj ve jeofizik listeleri ORTAK kullanır ($module). Sayfanın kendi `.fpr-*` sözlüğü ve modüle göre uydurulan vurgu renkleri ($accentColor turuncu / mor) SİLİNDİ. Modül rengi artık `KategoriRenkleri` tek kaynağından, yalnız kategori çipinde; satırın geri kalanı sakin. Biçim: ks-tema.css → .ks-kayit-satir ailesi + 35. bölüm (.ks-plan-*). Parametreler: $plan, $trMonths, $module ('sondaj'|'jeofizik'), $compact --}} @php $project = $plan->project; $compact = $compact ?? false; $module = $module ?? 'sondaj'; /* Durum → ANLAM varyantı. Eskiden her durum için ayrı rgba zemin/kenar/ nokta üçlüsü elle yazılıyordu; rozet bunu kendi değişkeninden çözer. */ $durumTon = [ 'planlandı' => 'bilgi', 'devam_ediyor' => 'uyari', 'tamamlandı' => 'ok', ][$plan->status] ?? ''; $monthNum = (int) $plan->scheduled_date->format('n'); $monthTr = $trMonths[$monthNum] ?? $plan->scheduled_date->format('M'); $dayNum = $plan->scheduled_date->format('d'); /* Kategori sınıfı KategoriRenkleri slug'ıyla aynı (tire'li). */ $katSinif = $module === 'sondaj' ? 'ks-kat-sondaj' : 'ks-kat-jeofizik'; $katAd = $module === 'sondaj' ? 'Sondaj' : 'Jeofizik'; $showRoute = $module === 'sondaj' ? route('sondaj.field-plans.show', $plan) : route('jeofizik.field-plans.show', $plan); $isveren = $project->contact?->display_name; // İşveren = projenin müşterisi @endphp @if($compact) {{-- ── KOMPAKT SATIR (Tamamlananlar) ── --}}
{{ $monthTr }} {{ $dayNum }}
@if($isveren)
İşveren:
@endif
@if($plan->plan_number){{ $plan->plan_number }}@endif @include('partials._project_notes_btn', ['project' => $project])
@else {{-- ── TAM SATIR (Aktif planlar) ── --}}
{{ $monthTr }} {{ $dayNum }}
@if($isveren)
İşveren:
@endif
{{ $project->city ?? '-' }}{{ $project->district ? ' / '.$project->district : '' }}{{ $project->neighborhood ? ' / '.$project->neighborhood : '' }}@if($project->ada || $project->parcel) · Ada {{ $project->ada ?? '-' }} / Parsel {{ $project->parcel ?? '-' }}@endif
{{-- Yapılacak işler — yalnızca BEKLEYEN (saha kaydı girilenler düşülür) --}} @if($module === 'sondaj') @php $pendingWells = $project->pendingPlannedWells(); $araziWorks = $project->relationLoaded('plannedWorks') ? $project->plannedWorks->filter(fn ($w) => $w->serviceItem && $w->serviceItem->category === 'arazi_deneyleri') : collect(); @endphp @if($pendingWells->count() || $araziWorks->isNotEmpty() || !empty($project->arazi_deneyleri_info))
@if($pendingWells->count()) Sondaj · bekleyen @foreach($pendingWells as $well) {{ $well->well_number }} · {{ number_format($well->planned_depth, 1) }} m @endforeach @endif @if($araziWorks->isNotEmpty()) Arazi @foreach($araziWorks as $aw) {{ $aw->serviceItem->name }} · {{ (int) $aw->quantity }} adet @endforeach @elseif(!empty($project->arazi_deneyleri_info)) Arazi {{ $project->arazi_deneyleri_info }} @endif
@endif @else @php $pendingGeo = $project->plannedGeophysics->filter(fn ($g) => $project->pendingGeophysicsRemaining($g) > 0); @endphp @if($pendingGeo->count())
Jeofizik · bekleyen @foreach($pendingGeo as $geo) {{ $geo->label_with_desc }} · {{ $project->pendingGeophysicsRemaining($geo) }} adet @endforeach
@endif @endif {{-- Ekip · Araç · Oluşturan — tek şerit --}} @if($plan->personnel->count() || $plan->vehicles->count() || $plan->creator)
@if($plan->personnel->count()) Ekip @foreach($plan->personnel as $person) {{ $person->name }} @endforeach @endif @if($plan->vehicles->count()) Araç @foreach($plan->vehicles as $vehicle) {{-- Araç etiketi modelin TEK erişimcisinden (display_label: Plaka · Keska · Marka · Model). `plate`/`name` diye alan YOK — tahminle yazılınca rozetler BOŞ basılıyordu (ölçümle yakalandı). --}} {{ $vehicle->display_label }} @endforeach @endif @if($plan->creator) {{ $plan->creator->name }} · {{ $plan->created_at->format('d.m.Y') }} @endif
@endif
@if($plan->plan_number){{ $plan->plan_number }}@endif @include('partials._project_notes_btn', ['project' => $project]) Detay
@endif