{{-- Sol: Bilgiler + Araç İstatistikleri + Saha Geçmişi --}}
{{-- Ekip Bilgileri --}}
{{-- Araç Bazlı İstatistikler --}}
@if($vehicleStats->isNotEmpty())
| Araç |
Proje |
Sondaj |
Jeofizik |
Arazi |
Saha Gün |
@foreach($vehicleStats as $stat)
|
@if($stat['vehicle'])
{{ $stat['vehicle']->display_label }}
{{ $stat['vehicle']->brand }} {{ $stat['vehicle']->model }}
@else
—
@endif
|
{{ $stat['projects'] }} |
@if($stat['depth'] > 0)
{{ number_format($stat['depth'], 0) }} m
/ {{ $stat['wells'] }}k
@else — @endif
|
@if($stat['geo'] > 0)
{{ $stat['geo'] }}
@else — @endif
|
@if($stat['pm'] > 0)
{{ $stat['pm'] }}
@else — @endif
|
{{ $stat['days'] }} |
@endforeach
@endif
{{-- Saha Aktivite Geçmişi --}}
@if($recentLogs->isNotEmpty())
Son {{ $recentLogs->count() }} kayıt
| Tarih |
Araç |
Tip |
Proje |
Detay |
@foreach($recentLogs as $log)
@php
$isSondaj = $log->work_type === 'sondaj';
$isGeo = $log->work_type === 'jeofizik';
$typeStyle = $isSondaj
? 'background:var(--ks-tint-blue-2);color:var(--ks-c-blue-800);'
: ($isGeo ? 'background:var(--ks-tint-orange-2);color:var(--ks-c-orange-700);' : 'background:#ccfbf1;color:var(--ks-on-teal);');
$typeLabel = $isSondaj ? 'Sondaj' : ($isGeo ? 'Jeofizik' : 'Arazi');
@endphp
| {{ $log->work_date?->format('d.m.Y') }} |
@if($log->vehicle)
{{ $log->vehicle->display_label }}
@else — @endif
|
{{ $typeLabel }}
|
@if($log->project)
{{ $log->project->project_number }}
@else — @endif
|
@if($isSondaj)
@foreach($log->wells as $w)
{{ $w->well_number }} · {{ $w->depth_meters }}m
@endforeach
@else
@foreach($log->measurements as $m)
{{ $m->measurement_type }} · {{ $m->count }}
@endforeach
@endif
|
@endforeach
@endif
{{-- Sağ: Üyeler + Araçlar --}}
{{-- Ekip Üyeleri --}}
{{ $team->currentMembers->count() }}
@forelse($team->currentMembers as $member)
{{ mb_strtoupper(mb_substr($member->name, 0, 1)) }}
{{ $member->name }}
{{ $member->pivot->role_in_team ?? 'Üye' }}
@empty
Henüz üye yok.
@endforelse
{{-- Araçlar & Makineler --}}
@forelse($team->vehicles as $vehicle)
{{ $vehicle->brand }} {{ $vehicle->model }}
@foreach($vehicle->machines as $machine)
↳ {{ $machine->name }} ({{ $machine->code }})
@endforeach
@empty
Atanmış araç yok.
@endforelse