@php $branch_logo_src = ''; if (!empty($sell_data->branch->img_url && file_exists(public_path($sell_data->branch->img_url)))) { $branch_logo_src = asset($sell_data->branch->img_url); } $address_1 = 'PHASE 1, KARACHI'; $address_2 = 'Survey # 141, 142, 143, 144'; $address_3 = 'Deh Rehri, Tappo Ibrahim Hyderi'; $address_4 = 'District Malir, Karachi'; $cnic = $sell_data->customer->nid; $cnic_no_dash = str_replace('-', '', $cnic); $cnic_with_dash = substr($cnic_no_dash, 0, 5) . '-' . substr($cnic_no_dash, 5, 7) . '-' . substr($cnic_no_dash, 12); $cnic_array = str_split($cnic_no_dash); $nominees = $sell_data->nominees; $all_nominees = count($nominees) > 0 ? $nominees->implode('name', ' , ') : '-'; $data = ' Registrataion No = ' . $sell_data->registration_no . ' Unit NO = ' . $sell_data->product->product_unique_id . ' Customer = ' . $sell_data->customer->name . ' Phone no = ' . $sell_data->customer->phone . ' CNIC NO = ' . $sell_data->customer->nid . ' Sale Date = ' . date(config('settings.date_format'), strtotime($sell_data->sale_date_v2)) . ''; $QR = QrCode::size(70)->generate($data); echo ''; @endphp @include('admin.partials.image-watermark') @include('admin.partials.branch-watermark')

{{ $sell_data->branch->name }}

{{ $address_1 }}
{{ $address_2 }}
{{ $address_3 }},
{{ $address_4 }}
     ALLOCATION LETTER
Dated ____________________
{{ $transaction->date_format($sell_data->sale_date_v2) }}
G. R. No. _____________________________
{{ $sell_data->registration_no }}
Miss / Mr / Mrs:
__________________________________________________________________
{{ $sell_data->customer->name }}
S/o. D/o. W/o.
__________________________________________________________________
{{ $sell_data->customer->father_or_husband_name }}
CN.I.C. Number
{{ $cnic_array[0] }}
{{ $cnic_array[1] }}
{{ $cnic_array[2] }}
{{ $cnic_array[3] }}
{{ $cnic_array[4] }}
-
{{ $cnic_array[5] }}
{{ $cnic_array[6] }}
{{ $cnic_array[7] }}
{{ $cnic_array[8] }}
{{ $cnic_array[9] }}
{{ $cnic_array[10] }}
{{ $cnic_array[11] }}
-
{{ $cnic_array[12] }}
Resident
_________________________________________________________________________________
{{$sell_data->customer->home_address ?? ' - '}}
We are pleased to allocation the Plot No.:______________________________________
Category:________________Size:________________Block:_______________Street:_________________
situated at {{ $sell_data->branch->name }} {{ $address_1 }}, {{ $address_2 }}, {{ $address_3 }}, {{ $address_4 }}.
{{ $sell_data->product->product_unique_id }}
{{ $sell_data->product->category->name??'-' }}
{{ $sell_data->product->flat_size }}
{{ $sell_data->product->block->name??'-' }}
For _________________________
Director Sales
Main Office: {{config('settings.address_1')}}
{{config('settings.email')}}
{{ $QR }}