@extends('admin.layout.master') @section('content')

Problems for: {{ $upload->name }}

@if(session('success'))
{{ session('success') }}
@endif
@forelse($problems as $problemIndex => $problem) {{-- Card --}}

{{-- Delete Button --}}
@csrf @method('DELETE')
{{-- Component Details --}} @php $components = json_decode($problem->components_json, true); @endphp @if(is_array($components) && count($components) > 0)
@foreach($components as $componentIndex => $item)
{{-- COMPONENT SERIAL NUMBER --}}
{{ $problemIndex + 1 }}.{{ $componentIndex + 1 }} {{ $item['component_name'] ?? 'Component' }}

Net Name: {{ $item['netName'] }}

Footprint: {{ $item['footprint'] }}

Pin Number: {{ $item['pinNumber'] }}

Diode Value: {{ $item['diodeValue'] }}

Capacitor Value: {{ $item['capacitorValue'] }}

Ohm Value: {{ $item['ohmValue'] }}

@endforeach
@else

No component details available.

@endif
@empty

No problems added.

@endforelse
@endsection