@extends('layouts.app') @section('content')

Pratinjau impor asset

{{ $filename }} · {{ $summary['total'] }} baris terbaca.

@csrf
Unduh laporan
@csrf
Total baris
{{ $summary['total'] }}
Baris error
{{ $summary['error_rows'] }}
Baris peringatan
{{ $summary['warning_rows'] }}
@forelse ($rows as $row) @empty @endforelse
Baris Aset ID asli Asset ID / Tag Kategori Perangkat Serial User / Holder Lokasi Status Qty Software Rahasia Catatan
{{ $row['row'] }} {{ $row['asset_id_raw'] ?: '—' }}
{{ $row['asset_id'] ?: '—' }}
{{ $row['asset_tag'] ?: 'Tanpa tag' }}
{{ $row['category'] ?: '—' }}
{{ trim(implode(' ', array_filter([$row['brand'], $row['name']]))) ?: '—' }}
{{ collect([$row['processor'], $row['storage'], $row['memory']])->filter()->implode(' · ') }}
{{ $row['serial_number'] ?: '—' }}
{{ $row['user_raw'] ?: '—' }}
{{ $row['holder_name'] ?: 'Tanpa holder' }}
{{ $row['location_name'] ?: '—' }} {{ \App\Models\Asset::STATUSES[$row['status']] ?? $row['status'] }} {{ $row['qty'] }} {{ implode(' · ', $row['software_names']) ?: '—' }} {{ $row['has_secret'] ? 'Ada' : '—' }} @if ($row['errors'] !== [])
{{ implode(' · ', $row['errors']) }}
@endif @if ($row['warnings'] !== [])
{{ implode(' · ', $row['warnings']) }}
@endif @if ($row['notes'])
{{ $row['notes'] }}
@endif @if ($row['errors'] === [] && $row['warnings'] === [] && ! $row['notes']) — @endif
Tidak ada baris yang dapat diimpor.
@csrf
Unduh laporan CSV
@csrf
@endsection