@section('title', 'Manage Vendors') @extends('admin.layouts.app') @push('style') @endpush @section('content') @if (empty($vendorDetails)) Add Vendor @else Edit Vendor @endif Manage Vendors @if (empty($vendorDetails)) Add Vendor @else Edit Vendor @endif arrow_back @if(empty($vendorDetails)) @else @method('PUT') @endif @csrf Name Email address Country code Select Country Code @foreach ($countylist as $country) country_code ? 'selected' : '' }}> {{ $country->name }} ({{ $country->country_code }}) @endforeach Phone number Contact details Address Description Document @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) @endif @endif @if(empty($vendorDetails)) @else @endif @endsection @push('script') @endpush
Excisting Document: {{$vendorDetails->document}}