@extends('layouts.app') @section('title', 'Zimmetli Envanterim') @section('content')

Zimmetli Envanterim

Uzerinize atanmis ekipmanlar ve ariza islemleri.

Arıza Taleplerim
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(!$ready)
Envanter tablolari hazir değil.
@elseif($assignments->isEmpty())
Size atanmis aktif envanter bulunmuyor.
@else
@foreach($assignments as $item) @php $serials = (array) ($item->serials ?? []); $pcNames = (array) ($item->pc_names ?? []); $hardwareSpecs = (array) ($item->hardware_specs ?? []); $serialDetails = (array) ($item->serial_details ?? []); @endphp
{{ $item->name }}
{{ $item->asset_code }} - {{ $item->category ?: 'Kategori yok' }}
Zimmetli
Zimmet Adedi: {{ (int) ($item->quantity ?? 1) }}
Marka/Model: {{ trim(($item->brand ?? '') . ' ' . ($item->model ?? '')) ?: '-' }}
@if(!empty($hardwareSpecs))
Donanım: {{ implode(' | ', $hardwareSpecs) }}
@endif @if(!empty($serialDetails))
Seri / PC / Donanım:
@foreach($serialDetails as $row)
{{ trim((string) ($row['serial_no'] ?? '')) !== '' ? $row['serial_no'] : '-' }} | {{ trim((string) ($row['pc_name'] ?? '')) !== '' ? $row['pc_name'] : '-' }} | {{ trim((string) ($row['hardware_spec'] ?? '')) !== '' ? $row['hardware_spec'] : '-' }}
@endforeach @else @if(!empty($serials))
Seri No: {{ implode(', ', $serials) }}
@endif @if(!empty($pcNames))
PC Adi: {{ implode(', ', $pcNames) }}
@endif @endif
Atama tarihi: {{ \Carbon\Carbon::parse($item->assigned_at)->format('d.m.Y H:i') }}
Arıza Talebi Oluştur Toplam Talep: {{ (int) $item->fault_count }}
@endforeach
@endif
@endsection