@extends('layout.app') @section('content')
@foreach ($list as $r) @endforeach {{-- {{ $list->links() }} --}}
ID Requisition No. Branch Status Create Date Location Purposes Recommendations Remarks Employee Name Submited By Submitted File
{{ $r->id }} {{ $r->requisition_number}} {{ $r->branchName}} {{ $r->status }} {{ date('d-M-Y H:i:s A', strtotime($r->created_at)) }} {{ $r->location }} {{ $r->purposes }} {{ $r->recommendation }} {{ $r->remark}} {{ $r->name}} {{ $r->author}} @if($file) @if($extension === 'pdf') @php $isS3 = checkSettings('store_image_to_s3') === 'enable'; $pdfUrl = $isS3 ? $r->auth_file : (!empty($r->auth_file) ? asset('storage/authFile/' . $r->auth_file) : null); @endphp @if($pdfUrl) Download PDF @else
PDF Not Provided
@endif @elseif(in_array(strtolower($extension), $imageFileExtens)) @php $isS3 = checkSettings('store_image_to_s3') === 'enable'; $imgUrl = $isS3 ? $r->auth_file // assume full URL from S3 : (!empty($r->auth_file) ? asset('storage/requsition/' . $r->auth_file) : null); @endphp @if($imgUrl) Auth Image @else
Image Not Provided
@endif @else
Unsupported File Type
@endif @else
File Not Provided
@endif
@can('requisition_show') @endcan
@endsection