@extends('template.layouts.template-base') @section('title', 'Edit Request') @section('content') {{-- Header (Same Style as Details Page) --}} Edit Request @csrf @method('PUT') {{-- SAME CARD STYLE AS DETAILS PAGE --}} Client * @foreach ($clients as $client) client_id == $client->id)> {{ $client->name }} @endforeach {{-- Row 2 --}} Select Products * @foreach ($products as $product) id, $selectedProducts))> {{ $product->product_name }} @endforeach Priority * priority) == 'high')>High priority) == 'medium')>Medium priority) == 'low')>Low {{-- Issue Summary --}} Issue Summary {{ $serviceSale->issue_summary }} {{-- Attachments --}} Attachments {{-- Upload Box --}} Click to Upload or drag and drop Upload attachments should be only PDF, DOC, DOCX, and images. Max file size 10MB {{-- Preview --}} @foreach ($serviceSale->attachments as $attachment) @php $ext = pathinfo($attachment->attachment, PATHINFO_EXTENSION); $isImage = in_array(strtolower($ext), ['jpg', 'jpeg', 'png', 'gif', 'webp']); $fileUrl = asset($attachment->attachment); @endphp @if($isImage) @else {{ $ext }} @endif @endforeach {{-- Footer Buttons (Same Alignment as Details Page) --}} Cancel Save Changes @endsection @section('scripts') @endsection
Click to Upload or drag and drop