@php $is_img = ['jpeg', 'png', 'jpg']; $document = $vendor->document ?? ''; $document_ext = strtolower(pathinfo($document, PATHINFO_EXTENSION)); $firm_reg_doc = $vendor->firm_reg_document ?? ''; $firm_reg_doc_ext = strtolower(pathinfo($firm_reg_doc, PATHINFO_EXTENSION)); $firm_pan_doc = $vendor->firm_pan_image ?? ''; $firm_pan_doc_ext = strtolower(pathinfo($firm_pan_doc, PATHINFO_EXTENSION)); $company_pan_doc = $vendor->company_pan_document ?? ''; $company_pan_doc_ext = strtolower(pathinfo($company_pan_doc, PATHINFO_EXTENSION)); $gst_doc = $vendor->gst_document ?? ''; $gst_doc_ext = strtolower(pathinfo($gst_doc, PATHINFO_EXTENSION)); $llp_tan_doc = $vendor->llp_tan_document ?? ''; $llp_tan_doc_ext = strtolower(pathinfo($llp_tan_doc, PATHINFO_EXTENSION)); $tan_doc = $vendor->pvt_ltd_tan_document ?? ''; $tan_doc_ext = strtolower(pathinfo($tan_doc, PATHINFO_EXTENSION)); $authority_letter_doc = $vendor->authority_letter_document ?? ''; $authority_letter_doc_ext = strtolower(pathinfo($authority_letter_doc, PATHINFO_EXTENSION)); $firm_doc = $vendor->firm_document ?? ''; $firm_doc_ext = strtolower(pathinfo($firm_doc, PATHINFO_EXTENSION)); $udhyam_reg_doc = $vendor->udhyam_reg_document ?? ''; $udhyam_reg_doc_ext = strtolower(pathinfo($udhyam_reg_doc, PATHINFO_EXTENSION)); $pvt_ltd_doc = $vendor->pvt_ltd_document ?? ''; $pvt_ltd_doc_ext = strtolower(pathinfo($pvt_ltd_doc, PATHINFO_EXTENSION)); $roc_doc = $vendor->roc_document ?? ''; $roc_doc_ext = strtolower(pathinfo($roc_doc, PATHINFO_EXTENSION)); $din_doc = $vendor->din_document ?? ''; $din_doc_ext = strtolower(pathinfo($din_doc, PATHINFO_EXTENSION)); $blank_cheque_doc = $vendor->blank_cheque ?? ''; $blank_cheque_doc_ext = strtolower(pathinfo($blank_cheque_doc, PATHINFO_EXTENSION)); @endphp @extends('admin.layouts.layouts') @section('title', 'Details | Vendors') @section('page-css') @endsection @section('content')
Vendor Details
Back
{{-- --}}
Basic Details
ID: {{ $vendor->id ?? '' }}
Vendor Code: {{ $vendor->vendor_code ?? '' }}
Vendor Name: {{ $vendor->name ?? '' }}
Type: {{ $vendor->type ?? '' }}
Vendor Type: {{ $vendor->vendorType->name ?? '' }}
Firm Type: {{ $vendor->firm_type ?? '' }}
Mobile No.: {{ $vendor->mobile_number ?? '' }}
Email: {{ $vendor->email ?? '' }}
Address: {{ $vendor->address ?? '' }}
Status: {{ $vendor->status ? 'Active' : 'Inactive' }}
Created By: {{ $vendor->createdBy->name ?? '' }}
Created At: {{ $vendor->created_at->format('d-m-Y h:i A') ?? '' }}
{{-- Conditionally Details --}} @if ($vendor->firm_type == 'Partnership' || $vendor->firm_type == 'LLP')
{{-- --}} @if ($vendor->firm_type == 'LLP') @endif @if ($vendor->firm_type == 'Partnership') @endif @if ($vendor->firm_type == 'LLP') @endif
@if ($vendor->firm_type == 'Partnership') Partnership Deed @else LLP @endif Details
@if ($vendor->firm_type == 'Partnership') Deed @else Incorporation @endif Document Number: {{ $vendor->document_number ?? '' }}
@if ($vendor->firm_type == 'Partnership') Deed @else Incorporation @endif Document @if (isset($document) && !empty($document) && file_exists(public_path('storage/' . $document))) @if (in_array(strtolower($document_ext), $is_img)) @else @endif @else Document not found! @endif
Date of Birth: {{ date('d-m-Y', strtotime($vendor->date_of_birth ?? '')) }}
Incorporation Date: {{ date('d-m-Y', strtotime($vendor->incorporation_date ?? '')) }}
Firm Registration Date: {{ date('d-m-Y', strtotime($vendor->firm_reg_date ?? '')) }}
Firm Registration Number: {{ $vendor->firm_number ?? '' }}
Firm Registration Document @if (isset($firm_reg_doc) && !empty($firm_reg_doc) && file_exists(public_path('storage/' . $firm_reg_doc))) @if (in_array(strtolower($firm_reg_doc_ext), $is_img)) @else @endif @else Document not found! @endif
Firm PAN Number: {{ $vendor->firm_pan_number ?? '' }}
Firm PAN Document @if (isset($firm_pan_doc) && !empty($firm_pan_doc) && file_exists(public_path('storage/' . $firm_pan_doc))) @if (in_array(strtolower($firm_pan_doc_ext), $is_img)) @else @endif @else Document not found! @endif
Company PAN Number: {{ $vendor->firm_pan_number ?? '' }}
Company PAN Document @if (isset($firm_pan_doc) && !empty($firm_pan_doc) && file_exists(public_path('storage/' . $firm_pan_doc))) @if (in_array(strtolower($firm_pan_doc_ext), $is_img)) @else @endif @else Document not found! @endif
TAN Number: {{ $vendor->llp_tan_number ?? '' }}
TAN Document @if (isset($llp_tan_doc) && !empty($llp_tan_doc) && file_exists(public_path('storage/' . $llp_tan_doc))) @if (in_array(strtolower($llp_tan_doc_ext), $is_img)) @else @endif @else Document not found! @endif
GST Number: {{ $vendor->gst_number ?? '' }}
GST Document @if (isset($gst_doc) && !empty($gst_doc) && file_exists(public_path('storage/' . $gst_doc))) @if (in_array(strtolower($gst_doc_ext), $is_img)) @else @endif @else Document not found! @endif
Authority Letter Document @if (isset($authority_letter_doc) && !empty($authority_letter_doc) && file_exists(public_path('storage/' . $authority_letter_doc))) @if (in_array(strtolower($authority_letter_doc_ext), $is_img)) @else @endif @else Document not found! @endif
Udhyam Reg.(MSME) Number: {{ $vendor->udhyam_reg_number ?? '' }}
Udhyam Reg.(MSME) Document @if (isset($udhyam_reg_doc) && !empty($udhyam_reg_doc) && file_exists(public_path('storage/' . $udhyam_reg_doc))) @if (in_array(strtolower($udhyam_reg_doc_ext), $is_img)) @else @endif @else Document not found! @endif
Authority Persons @if (isset($vendor->authorityPeoples) && count($vendor->authorityPeoples) > 0) @foreach ($vendor->authorityPeoples as $person) {{ $person->name }} @endforeach @else Persons not found! @endif
@elseif ($vendor->firm_type == 'Proprietorship')
{{-- --}}
Firm Registration Details
Firm Number: {{ $vendor->firm_number ?? '' }}
Firm Registration Date: {{ date('d-m-Y', strtotime($vendor->firm_reg_date ?? '')) }}
Document @if (isset($firm_doc) && !empty($firm_doc) && file_exists(public_path('storage/' . $firm_doc))) @if (in_array(strtolower($firm_doc_ext), $is_img)) @else @endif @else Document not found! @endif
Udhyam Reg.(MSME) Number: {{ $vendor->udhyam_reg_number ?? '' }}
Udhyam Reg.(MSME) Document @if (isset($udhyam_reg_doc) && !empty($udhyam_reg_doc) && file_exists(public_path('storage/' . $udhyam_reg_doc))) @if (in_array(strtolower($udhyam_reg_doc_ext), $is_img)) @else @endif @else Document not found! @endif
GST Number: {{ $vendor->gst_number ?? '' }}
GST Document @if (isset($gst_doc) && !empty($gst_doc) && file_exists(public_path('storage/' . $gst_doc))) @if (in_array(strtolower($gst_doc_ext), $is_img)) @else @endif @else Document not found! @endif
@elseif ($vendor->firm_type == 'PVT LTD' || $vendor->firm_type == 'Limited')
{{-- --}} {{-- --}}
@if ($vendor->firm_type == 'PVT LTD') PVT LTD @else Limited @endif Details
Memorandum of Article: {{ $vendor->memorandum_article ?? '' }}
ROC Number: {{ $vendor->roc_number ?? '' }}
DIN Number: {{ $vendor->din_number ?? '' }}
List of Directors: {{ $vendor->list_of_directors ?? '' }}
Document @if (isset($pvt_ltd_doc) && !empty($pvt_ltd_doc) && file_exists(public_path('storage/' . $pvt_ltd_doc))) @if (in_array(strtolower($pvt_ltd_doc_ext), $is_img)) @else @endif @else Document not found! @endif
ROC Document @if (isset($roc_doc) && !empty($roc_doc) && file_exists(public_path('storage/' . $roc_doc))) @if (in_array(strtolower($roc_doc_ext), $is_img)) @else @endif @else Document not found! @endif
DIN Document @if (isset($din_doc) && !empty($din_doc) && file_exists(public_path('storage/' . $din_doc))) @if (in_array(strtolower($din_doc_ext), $is_img)) @else @endif @else Document not found! @endif
Company PAN Number: {{ $consultancy->company_pan_number ?? '' }}
Company PAN Document @if (isset($company_pan_doc) && !empty($company_pan_doc) && file_exists(public_path('storage/' . $company_pan_doc))) @if (in_array(strtolower($company_pan_doc_ext), $is_img)) @else @endif @else Document not found! @endif
Authority Letter Document @if (isset($authority_letter_doc) && !empty($authority_letter_doc) && file_exists(public_path('storage/' . $authority_letter_doc))) @if (in_array(strtolower($authority_letter_doc_ext), $is_img)) @else @endif @else Document not found! @endif
Udhyam Reg.(MSME) Number: {{ $vendor->udhyam_reg_number ?? '' }}
Udhyam Reg.(MSME) Document @if (isset($udhyam_reg_doc) && !empty($udhyam_reg_doc) && file_exists(public_path('storage/' . $udhyam_reg_doc))) @if (in_array(strtolower($udhyam_reg_doc_ext), $is_img)) @else @endif @else Document not found! @endif
TAN Number: {{ $vendor->pvt_ltd_tan_number ?? '' }}
TAN Document @if (isset($tan_doc) && !empty($tan_doc) && file_exists(public_path('storage/' . $tan_doc))) @if (in_array(strtolower($tan_doc_ext), $is_img)) @else @endif @else Document not found! @endif
GST Number: {{ $vendor->gst_number ?? '' }}
GST Document @if (isset($gst_doc) && !empty($gst_doc) && file_exists(public_path('storage/' . $gst_doc))) @if (in_array(strtolower($gst_doc_ext), $is_img)) @else @endif @else Document not found! @endif
Authority Persons @if (isset($vendor->authorityPeoples) && count($vendor->authorityPeoples) > 0) @foreach ($vendor->authorityPeoples as $person) {{ $person->name }} @endforeach @else Persons not found! @endif
@endif {{-- Bank Details --}}
Bank Details
Bank Name: {{ $vendor->bank_name ?? '' }}
IFSC Code: {{ $vendor->ifsc_code ?? '' }}
Account Number: {{ $vendor->account_number ?? '' }}
Cheque Number: {{ $vendor->cheque_number ?? '' }}
Cheque Image @if (isset($blank_cheque_doc) && !empty($blank_cheque_doc) && file_exists(public_path('storage/' . $blank_cheque_doc))) @if (in_array(strtolower($blank_cheque_doc_ext), $is_img)) @else @endif @else Document not found! @endif
{{-- Other Document Details --}} @if (isset($vendor->otherDocuments) && count($vendor->otherDocuments) > 0 && $vendor->firm_type == 'Other')
@foreach ($vendor->otherDocuments as $otherDocument) @php $file = $otherDocument->file_path ?? ''; $file_ext = strtolower( pathinfo($file, PATHINFO_EXTENSION), ); @endphp @endforeach
Other Document Details
# Title File
{{ $loop->iteration }} {{ $otherDocument->title ?? '' }} @if (isset($file) && !empty($file) && file_exists(public_path('storage/' . $file))) @if (in_array(strtolower($file_ext), $is_img)) @else @endif @endif
@endif {{-- Owner Details --}} @if (isset($vendor->ownerDetails) && count($vendor->ownerDetails) > 0) @php $title = 'Owner Details'; $colspan = '7'; if ($vendor->firm_type == 'Partnership' || $vendor->firm_type == 'LLP') { $title = 'Partner Details'; } elseif ($vendor->firm_type == 'Proprietorship') { $title = 'Owner Details'; } elseif ($vendor->firm_type == 'PVT LTD' || $vendor->firm_type == 'Limited') { $title = 'Directors Details'; $colspan = '8'; } elseif ($vendor->firm_type == 'Other') { $title = 'Person Details'; } @endphp
@if ($vendor->firm_type == 'PVT LTD') @endif @foreach ($vendor->ownerDetails as $ownerDetail) @php $aadhar_front = $ownerDetail->aadhar_card_front_image ?? ''; $aadhar_front_ext = strtolower( pathinfo($aadhar_front, PATHINFO_EXTENSION), ); $aadhar_back = $ownerDetail->aadhar_card_back_image ?? ''; $aadhar_back_ext = strtolower( pathinfo($aadhar_back, PATHINFO_EXTENSION), ); $pan_card_img = $ownerDetail->pan_card_image ?? ''; $pan_card_img_ext = strtolower( pathinfo($pan_card_img, PATHINFO_EXTENSION), ); @endphp @if ($vendor->firm_type == 'PVT LTD') @endif @endforeach
{{ $title }}
# Name Mobile Aadhar No. Aadhar Images PAN No. Pan ImageDIN Number
{{ $loop->iteration }} {{ $ownerDetail->name ?? '' }} {{ $ownerDetail->mobile_number ?? '' }} {{ $ownerDetail->aadhar_number ?? '' }} @if (isset($aadhar_front) && !empty($aadhar_front) && file_exists(public_path('storage/' . $aadhar_front))) @if (in_array(strtolower($aadhar_front_ext), $is_img)) FRONT @else FRONT @endif @endif @if (isset($aadhar_back) && !empty($aadhar_back) && file_exists(public_path('storage/' . $aadhar_back)))
@if (in_array(strtolower($aadhar_back_ext), $is_img)) BACK @else BACK @endif @endif
{{ $ownerDetail->pan_number ?? '' }} @if (isset($pan_card_img) && !empty($pan_card_img) && file_exists(public_path('storage/' . $pan_card_img))) @if (in_array(strtolower($pan_card_img_ext), $is_img)) PAN @else PAN @endif @endif {{ $ownerDetail->din_number ?? '' }}
@endif
@endsection @section('page-js') @endsection