@php $is_img = ['jpeg', 'png', 'jpg']; $document = $courier_company->document ?? ''; $document_ext = strtolower(pathinfo($document, PATHINFO_EXTENSION)); $gst_doc = $courier_company->gst_document ?? ''; $gst_doc_ext = strtolower(pathinfo($gst_doc, PATHINFO_EXTENSION)); $authority_letter_doc = $courier_company->authority_letter_document ?? ''; $authority_letter_doc_ext = strtolower(pathinfo($authority_letter_doc, PATHINFO_EXTENSION)); $firm_doc = $courier_company->firm_document ?? ''; $firm_doc_ext = strtolower(pathinfo($firm_doc, PATHINFO_EXTENSION)); $udhyam_reg_doc = $courier_company->udhyam_reg_document ?? ''; $udhyam_reg_doc_ext = strtolower(pathinfo($udhyam_reg_doc, PATHINFO_EXTENSION)); $pvt_ltd_doc = $courier_company->pvt_ltd_document ?? ''; $pvt_ltd_doc_ext = strtolower(pathinfo($pvt_ltd_doc, PATHINFO_EXTENSION)); $roc_doc = $courier_company->roc_document ?? ''; $roc_doc_ext = strtolower(pathinfo($roc_doc, PATHINFO_EXTENSION)); $din_doc = $courier_company->din_document ?? ''; $din_doc_ext = strtolower(pathinfo($din_doc, PATHINFO_EXTENSION)); $blank_cheque_doc = $courier_company->blank_cheque ?? ''; $blank_cheque_doc_ext = strtolower(pathinfo($blank_cheque_doc, PATHINFO_EXTENSION)); @endphp @extends('admin.layouts.layouts') @section('title', 'Details | Courier Companies') @section('page-css') @endsection @section('content')
Courier Company Details
Back
Basic Details
ID: {{ $courier_company->id ?? '' }}
Courier Company Name: {{ $courier_company->name ?? '' }}
Firm Type: {{ $courier_company->firm_type ?? '' }}
Status: {{ $courier_company->status ? 'Active' : 'Inactive' }}
Created By: {{ $courier_company->createdBy->name ?? '' }}
Created At: {{ $courier_company->created_at->format('d-m-Y h:i A') ?? '' }}
{{-- Conditionally Details --}} @if ($courier_company->firm_type == 'Partnership')
Partnership Deed Details
Deed Document Number: {{ $courier_company->document_number ?? '' }}
Deed 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($courier_company->date_of_birth ?? '')) }}
Firm Registration Date: {{ date('d-m-Y', strtotime($courier_company->firm_reg_date ?? '')) }}
Firm Registration Number: {{ $courier_company->firm_number ?? '' }}
GST Number: {{ $courier_company->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: {{ $courier_company->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($courier_company->authorityPeoples) && count($courier_company->authorityPeoples) > 0) @foreach ($courier_company->authorityPeoples as $person) {{ $person->name }} @endforeach @else Persons not found! @endif
@elseif ($courier_company->firm_type == 'Proprietorship')
Firm Registration Details
Firm Number: {{ $courier_company->firm_number ?? '' }}
Firm Registration Date: {{ date('d-m-Y', strtotime($courier_company->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: {{ $courier_company->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: {{ $courier_company->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 ($courier_company->firm_type == 'PVT LTD')
PVT LTD Details
Memorandum of Article: {{ $courier_company->memorandum_article ?? '' }}
ROC Number: {{ $courier_company->roc_number ?? '' }}
DIN Number: {{ $courier_company->din_number ?? '' }}
List of Directors: {{ $courier_company->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
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: {{ $courier_company->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: {{ $courier_company->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($courier_company->authorityPeoples) && count($courier_company->authorityPeoples) > 0) @foreach ($courier_company->authorityPeoples as $person) {{ $person->name }} @endforeach @else Persons not found! @endif
@endif {{-- Bank Details --}}
Bank Details
Bank Name: {{ $courier_company->bank_name ?? '' }}
IFSC Code: {{ $courier_company->ifsc_code ?? '' }}
Account Number: {{ $courier_company->account_number ?? '' }}
Cheque Number: {{ $courier_company->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
{{-- Owner Details --}} @if (isset($courier_company->ownerDetails) && count($courier_company->ownerDetails) > 0) @php $title = 'Owner Details'; $colspan = '7'; if ($courier_company->firm_type == 'Partnership') { $title = 'Partner Details'; } elseif ($courier_company->firm_type == 'Proprietorship') { $title = 'Owner Details'; } elseif ($courier_company->firm_type == 'PVT LTD') { $title = 'Directors Details'; $colspan = '8'; } @endphp
@if ($courier_company->firm_type == 'PVT LTD') @endif @foreach ($courier_company->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 ($courier_company->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