@php
$common_helper = \App\Helpers\CommonHelper::class;
$transaction = new \App\Models\Transaction();
$customer_cnic_arr = $common_helper::getCnicArray($sell->customer->nid);
$kin_cnic_arr = $common_helper::getCnicArray($kin->nic);
$passport_arr = str_split($sell->customer->passport);
$mailing_address = $common_helper::getTwoSubstrings($sell->customer->mailing_address,57,60);
$mailing_address_first_line = $mailing_address[0];
$mailing_address_second_line = $mailing_address[1];
$kin = $sell->nominees->first();
@endphp
{{ $sell->id }}
{{ $sell->registration_no }}
@php
$data = '
Membership NO = "'.$sell->registration_no.'"
Customer = "'.$sell->customer->name.'"
Phone no = "'.$sell->customer->phone.'"
CNIC NO = "'.$sell->customer->nid.'"
Sale Date = "'.date(config('settings.date_format'), strtotime($sell->sale_date_v2)).'"
Unit NO ="'.$sell->product->product_unique_id.'
Website ="'.$settings['website'] ?? ' - '.'
';
$QR = QrCode::size(70)
->generate($data);
echo '
.')
';
@endphp
{!!App\Models\Common::showProfile($sell->customer->profile)!!}
{{ $sell->customer->name ?? '-' }}
@foreach ($customer_cnic_arr as $cnic_num )
{{ $cnic_num }} |
@endforeach
{{ $sell->customer->father_or_husband_name ?? '-' }}
@foreach ($passport_arr as $cnic_num )
{{ $cnic_num }} |
@endforeach
{{ $sell->customer->email }}
{{ $mailing_address_first_line }}
{{ $mailing_address_second_line }}
{{ $sell->customer->residential_phone }}
{{ $sell->customer->phone }}
{{ $kin->name }}
{{ $kin->so_do_wo }}
@foreach ($kin_cnic_arr as $cnic_num )
{{ $cnic_num }} |
@endforeach
{{ $kin->relation }}
{{ $transaction->convert_money_format($sell->ScheduleReceivableWithoutDiscount->sum('payable_amount')) }}