@section('title', $title) @section('description', $description) @extends('layout.app') @section('content')
@if(count($imagesOrfiles) > 0) @foreach($imagesOrfiles as $file) @php $filePath = asset($folderUrl . '/' . basename($file)); $fileExtension = pathinfo($file, PATHINFO_EXTENSION); $imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp']; $isImage = in_array(strtolower($fileExtension), $imageExtensions); @endphp
@if($isImage) Image @else
File
@endif 📥 Download
@endforeach @endif
{{ $product->product_name }}

{{ $product->product_name }}

Account Holder: {{ $product->account_holder }}

Email: {{ $product->email }}

Cost: {{ $product->product_cost }}

Attachment: @if($product->attachment) {{ $product->attachment->attachment_name }} @else No Attachment @endif

@endsection