@extends('layouts.app') @section('title', 'Arıza Talep Detayi') @section('content')

Arıza Talebi #{{ $fault->id }}

{{ $fault->asset_name }} ({{ $fault->asset_code }})
@if(session('success'))
{{ session('success') }}
@endif @if(session('warning'))
{{ session('warning') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif @php $statusClass = \App\Support\AssetFaultLabelHelper::statusBadgeClass((string) $fault->status); $statusLabel = \App\Support\AssetFaultLabelHelper::statusLabel((string) $fault->status); @endphp
Talep Bilgisi
{{ $statusLabel }}
Başlik
{{ $fault->title }}
Açıklama
{{ $fault->description ?: '-' }}
Öncelik
{{ \App\Support\AssetFaultLabelHelper::priorityLabel((string) $fault->priority) }}
Talep Açan
{{ $fault->requested_by_name ?: ('User #' . $fault->requested_by_user_id) }}
Oluşturma
{{ \Carbon\Carbon::parse($fault->created_at)->format('d.m.Y H:i') }}
Birim
{{ $fault->group_name ?: '-' }}
Atanan Kişi
{{ $fault->assigned_to_name ?: '-' }}
Geçerlilik Tarihi
@if(!empty($deadlineInfo['deadline_label']))
{{ $deadlineInfo['deadline_label'] }}
@if(!empty($deadlineInfo['deadline_human']))
{{ $deadlineInfo['deadline_human'] }}
@endif @else
-
@endif
Notlar
@php $faultNotes = $notes ?? collect(); @endphp @if($faultNotes->isEmpty())
Kayıtlı not yok.
@else @foreach($faultNotes as $note)
{{ $note->user_name ?: ('User #' . $note->user_id) }}
{{ \Carbon\Carbon::parse($note->created_at)->format('d.m.Y H:i') }}
@if($canManage)
@if((int) ($note->is_visible_to_requester ?? 0) === 1) Talep Sahibine Açık @else Ic Not @endif
@endif
{{ $note->note }}
@if(!empty($note->attachment_path))
Not görseli @if(!empty($note->attachment_name))
{{ $note->attachment_name }}
@endif
@endif
@endforeach @endif
Süreç Geçmişi
@if($logs->isEmpty())
Kayıtlı log bulunamadı.
@else
@foreach($logs as $log) @php $decisionClass = \App\Support\AssetFaultLabelHelper::decisionBadgeClass((string) $log->decision); $decisionLabel = \App\Support\AssetFaultLabelHelper::decisionLabel((string) $log->decision); $commentText = \App\Support\AssetFaultLabelHelper::normalizeLogComment((string) ($log->comment ?? '')); @endphp
{{ $decisionLabel }} {{ \Carbon\Carbon::parse($log->created_at)->format('d.m.Y H:i') }}
{{ $log->task_name ?: 'Sistem' }} @if($log->user_name) - {{ $log->user_name }} @endif
@if($canManage && $commentText !== '')
{{ $commentText }}
@endif
@endforeach
@endif
@if($canManage || !empty($canAddNoteMedia))
{{ !empty($canHandleStatus) ? 'Durum ve Not Güncelleme' : 'Not ve Görsel Ekle' }}
@php $statusForPost = (string) $fault->status; if (in_array($statusForPost, ['running', 'in_progress'], true)) { $statusForPost = 'in_progress'; } elseif (in_array($statusForPost, ['resolved', 'approved'], true)) { $statusForPost = 'resolved'; } elseif ($statusForPost === 'rejected') { $statusForPost = 'rejected'; } else { $statusForPost = 'open'; } @endphp
@csrf @if(!empty($canHandleStatus))
Durum değiştirmeden sadece not ekleyebilirsiniz.
@if($canManage)
@if(!empty($canAssignPersonnel))
Yetkili, talebi gruptaki uygun kişiye atayabilir.
@else
Atama değiştirme yetkisi sadece birim yetkilisindedir.
@endif
@else
Atama ve oncelik degisikligini sadece birim yetkilisi yapabilir.
@endif @else
Bu alanda sadece not ve görsel ekleyebilirsiniz.
@endif
JPG, PNG veya WEBP (Maks. 5 MB)
@endif
Envanter
Kod
{{ $fault->asset_code }}
Kategori
{{ $fault->asset_category ?: '-' }}
Marka / Model
{{ trim(($fault->asset_brand ?? '') . ' ' . ($fault->asset_model ?? '')) ?: '-' }}
@endsection