@extends('template.layouts.template-base') @section('title', 'Request Details') @section('content')
Edit Request
@csrf @method('DELETE')
@forelse ($products as $item) @if (in_array($item->id, $selectedProducts)) {{ $item->product_name }} @endif @empty No products found @endforelse
Attachments
@if ($data->attachments->isNotEmpty())
@foreach ($data->attachments as $attachment)
@php $extension = pathinfo($attachment->file_path, PATHINFO_EXTENSION); @endphp @if (strtolower($extension) == 'pdf')
PDF
@else @endif
{{ basename($attachment->file_path) }}
{{ $attachment->created_at->format('d M Y') }}
@endforeach
@else

No attachments available.

@endif
@endsection @section('scripts') @endsection