@extends('layouts.app') @section('title','Edit Purchase Request') @section('page-title','Edit Purchase Request') @section('content')
Edit: {{ $purchaseRequest->pr_number }} Cancel
@csrf @method('PUT')

Invoice Attachments (upload new to replace existing)
@foreach([1,2,3,4,5] as $n) @php $existing = $purchaseRequest->{'invoice_'.$n}; @endphp
@if($existing) @php $ext=strtolower(pathinfo($existing,PATHINFO_EXTENSION)); $isPdf=$ext==='pdf'; @endphp
Current file
{{ $ext }}
@endif
{{ $existing?'Click to replace':'Click or drag file here' }}
JPG · PNG · PDF · max 5MB
@endforeach
@endsection @push('scripts') @endpush