@php $customer_names = $strings = [$sell_detail->customer->name, $sell_detail->customer->customerDetail->implode('name',' / ')]; $customer_name_combine = implode(" / ", array_filter($strings)); $phone = ' - '; $show_membership_no = CommonHelper::getBranchSettings($sell_detail->branch_id, 'show_membership_no_on_statement'); if (isset($sell_detail->customer)) { $customer = $sell_detail->customer; if (isset($customer->phone)) { $phone = $customer->phone; } elseif (isset($customer->office_phone)) { $phone = $customer->office_phone; } elseif (isset($customer->overseas_phone)) { $phone = $customer->overseas_phone; } } $branch_name = $extra['branch']->name; $company_name = config('settings.company_name'); @endphp

  • {{$company_name}}
  • STATEMENT OF ACCOUNT
  • {{$branch_name}}
  • @if(!CommonHelper::getBranchSettings($sell_detail->branch_id, 'hide_size_on_statement')) @endif
    Booking id : {{ $sell_detail->registration_no }}
    Customer : {{ $customer_name_combine }}
    Address : {{ $sell_detail->customer->address ?? $sell_detail->customer->mailing_address }}
    Contact No. : {{ $phone }}
    Unit : {{ strtoupper($sell_detail->product->product_unique_id) }}
    Unit Size : {{ $sell_detail->product->flat_size }} {{ getShortName($sell_detail->product->size_in) }} (Approx)