{{-- Extends layout --}} @extends(getThemeBasePath()) @section('page_title') {{$page_title}} @endsection {{-- Content --}} @section('content')
@if(!empty($data['id'])) @method('PUT') @endif @csrf
@include("backend.errors")
{!!Helper::getClientManageDropDown(['selectedClientId' => ($data['comp_cust_id'] ?? ''), 'isRequired' => true, 'name' => 'comp_cust_id','inputDivClass' => 'col-12'])!!}
@if(isset($data['comp_document']) && !empty($data['comp_document'])) @endif
{{-- @if(isset($data['comp_document']) && !empty($data['comp_document'])) --}} {{-- --}} {{--
@php $allowed_types = array ( 'application/pdf', 'image/jpeg', 'image/png' ); $fileInfo = finfo_open(FILEINFO_MIME_TYPE); $detected_type = pathinfo(asset('images/feedback/'.$data['comp_document']) ); @endphp
@if(in_array(strtolower($detected_type['extension']),['jpg','jpeg','gif','png'])) @elseif(strtolower($detected_type['extension']) == "pdf")
@push('custom-scripts') @endpush @else No Preview Available @endif
--}} {{-- @endif --}}
@endsection {{-- Scripts Section --}} @section('scripts') @endsection