@php foreach($sell_details->customer->customerDetail as $customer_detail) { $name.="/ ".$customer_detail->name; $f_name.="/ ".$customer_detail->father_name; $c_id.="/ ".$customer_detail->nic; } $phone = ' - '; if (isset($sell_details->customer)) { $customer = $sell_details->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; } } @endphp @if(CommonHelper::getBranchSettings($sell_details->branch_id, 'header_on_confirmation_letter')) @include('admin.partials.confirmation_letter_header') @endif @if(CommonHelper::getBranchSettings($extra['branch']->id, 'heading_on_confirmation_letter'))
CONFIRMATION
LETTER
@endif