@php $color = (string) ($color ?? 'black'); $color_hex= $color=='black'?"#000000":"#13442c"; $licenseVersion = (string) ($licenseVersion ?? 'print'); $isQrVersion = $licenseVersion === 'qr'; @endphp
@php $headerLogoPath = $color === 'black' ? public_path('assets/images/pdf/header-b.png') : public_path('assets/images/pdf/header.png'); $footerLogoPath = $color === 'black' ? public_path('assets/images/pdf/footer-b.png') : public_path('assets/images/pdf/footer.png'); $headerLogoBase64 = is_file($headerLogoPath) ? 'data:'.(mime_content_type($headerLogoPath) ?: 'image/jpeg').';base64,'.base64_encode(file_get_contents($headerLogoPath)) : null; $footerLogoBase64 = is_file($footerLogoPath) ? 'data:'.(mime_content_type($footerLogoPath) ?: 'image/jpeg').';base64,'.base64_encode(file_get_contents($footerLogoPath)) : null; $partners = collect($partners ?? [])->values(); $authorizedPartner = $partners->first()?->citizen; $detail = $craft->detail; $fileNumber = (string) ($craft->file_number ?: $craft->id); $streetName = (string) ($craft->street?->name ?: '-'); $craftTypeName = (string) ($craft->type?->name ?: '-'); $craftName = (string) ($craft->craft_name ?: '-'); $officialCompanyName = (string) ($craft->official_company_name ?: '-'); $authorizedPartnerName = (string) ($authorizedPartner?->full_name ?: '-'); $authorizedPartnerNationalId = (string) ($authorizedPartner?->national_id ?: '-'); $authorizedPartnerMobile = (string) ($authorizedPartner?->mobile ?: '-'); $commercialAddress = (string) ($craft->location_text ?: '-'); $postalCode = (string) ($craft->postal_code ?: '-'); $siteOwnerName = (string) ($detail?->building_owner ?: '-'); $craftLeaderAdjective = (string) ($detail?->craft_leader_adjective ?: '-'); $firstLicenseDate = $craft->first_year ? (string) $craft->first_year : '-'; @endphp{{ __('modules.craft.resources_views_pages_follow_up_print_license_joint_stock.text_133c488365') }} {{ $licenseNumber }}
{{ __('modules.craft.resources_views_pages_follow_up_print_license_joint_stock.text_c085054c19') }}
{{ __('modules.craft.resources_views_pages_follow_up_print_license_joint_stock.text_bde9e75613') }}
{{ __('modules.craft.resources_views_pages_follow_up_print_license_joint_stock.text_3874c2763b') }}
{{ __('modules.craft.resources_views_pages_follow_up_print_license_joint_stock.text_a2c0725a91') }}
| # | {{ __('modules.craft.resources_views_pages_follow_up_print_license_joint_stock.text_c91b67e456') }} | {{ __('modules.craft.resources_views_pages_follow_up_print_license_joint_stock.text_8ce6711e19') }} | {{ __('modules.craft.resources_views_pages_follow_up_print_license_joint_stock.text_0cc73f25c3') }} |
|---|---|---|---|
| {{ $index + 1 }} | {{ $partner->citizen?->full_name ?: '-' }} | {{ $partner->citizen?->national_id ?: '-' }} | {{ $partner->citizen?->mobile ?: '-' }} |
| {{ __('modules.craft.resources_views_pages_follow_up_print_license_joint_stock.text_aed15fe917') }} | |||
{{ __('modules.craft.resources_views_pages_follow_up_print_license_joint_stock.text_9f51ada814') }}