@section('title', 'Manage Vendors') @extends('admin.layouts.app') @push('style') @endpush @section('content')

@if (empty($vendorDetails)) Add Vendor @else Edit Vendor @endif

arrow_back
@if(empty($vendorDetails))
@else @method('PUT') @endif @csrf
@if (!empty($vendorDetails->document))
@php $documentUrl = env("AWS_URL") . env("AWS_FOLDER") . env("VENDOR_DOCUMENT") . $vendorDetails->document; $isPdf = pathinfo($documentUrl, PATHINFO_EXTENSION) === 'pdf'; @endphp

Excisting Document: {{$vendorDetails->document}}

@if ($isPdf) PDF @endif
@endif
@if(empty($vendorDetails)) @else @endif
@endsection @push('script') @endpush