@extends('pos.layout') @section('title', 'Receipt ' . ($billpayment->money_receipt_number ?? '')) @section('receipt')
@if (!empty($company_info->img_url) && companyImageUrl($company_info->img_url))
@endif
{{ $company_info->name ?? '' }}
{{-- The address is saved from a rich text editor; a receipt only wants the words. Line breaks become spaces first so "Road 1
Dhaka" does not run together. --}} @php $posAddress = preg_replace('/<(br|\/p|\/div|\/li)[^>]*>/i', ' ', $company_info->address ?? ''); $posAddress = trim(preg_replace('/[\s\x{00A0}]+/u', ' ', html_entity_decode(strip_tags($posAddress)))); @endphp @if ($posAddress !== '')
{{ $posAddress }}
@endif @if (!empty($company_info->mobile))
{{ $company_info->mobile }}
@endif

MONEY RECEIPT
MR No: {{ $billpayment->money_receipt_number ?? '' }}

@if (checkSettings('package-show-in-invoice') == 'enable') @endif @if (!empty($billpayment->clients->expire_date)) @endif @if (!empty($billpayment->description)) @endif
Date {{ $billpayment->created_at->format('d-m-Y h:i A') }}
CID {{ $billpayment->clients->id ?? '' }}
Name {{ $billpayment->clientsinfo->clients_name ?? '' }}
User ID {{ $billpayment->clients->userid ?? '' }}
Contact {{ $billpayment->clientsinfo->contact_no ?? '' }}
Package {{ $billpayment->clients->packages->package_name ?? '' }}
Expire Date {{ date('d-m-Y', strtotime($billpayment->clients->expire_date)) }}
Details {{ $billpayment->description }}

@if ($billpayment->discount_amount > 0) @endif
Paid Amount {{ number_format($billpayment->paid_amount, 2) }}
Discount {{ number_format($billpayment->discount_amount, 2) }}
Total {{ number_format($billpayment->paid_amount + $billpayment->discount_amount, 2) }}
Due Amount {{ number_format($billpayment->clients->customerAccount->dueAmount ?? 0, 2) }}

Collected By {{ $billpayment->employee->name ?? '' }}

Thank you
@if (checkSettings('customize-invoice-footer') == 'disable')
Powered By: https://yetfix.com/
@endif @endsection