@php function formatDate($date) { // Check if the date is valid if (!strtotime($date)) { return ''; } return date('d-m-Y', strtotime($date)); } function printTillSpecificLength($string, $maxLength) { // Check if the length of the string is less than or equal to the maxLength if (strlen($string) <= $maxLength) { echo $string; } else { // If the length exceeds maxLength, print only up to maxLength characters echo substr($string, 0, $maxLength); } } $copies = isset($_GET['copies'])?$_GET['copies']:'consignor'; // BREAK $copies INTO ARRAY $copies = explode(',', $copies); @endphp {{$company->company_name}}

{{$company->company_name}}

{{$company->company_caption}}

{{$company->address1}}

Phone No :{{$company->mob1}},
E-Mail :- {{$company->email}},
Web :- {{$company->website}}

GST NO :{{$company->gst_number}}

Other Bill Entry
Bill Entry No {{$bill->bill_number}} Bill Entry Date {{formatDate($bill->bill_date)}}
Vendor Name {{ isset($bill->acc_party) ? $bill->acc_party->account_name :'' }} Vendor Accounted to {{ isset($bill->acc_party) ? $bill->acc_party->group ?$bill->acc_party->group->group_name:'' : ''}}
Vendor Bill Number {{$bill->invoice_number}} Vendor Bill Amount {{$bill->grand_total_amount}}
Vendor Bill Date {{formatDate($bill->invoice_date)}} Due Date
Ref. NO. Remark {{$bill->remarks}}
GST Reverse Charge NO Net Amount {{$bill->grand_total_amount}}
@php $totalAmount = 0; $totalIgstAmount = 0; $totalCgstAmount = 0; $totalSgstAmount = 0; $totalNetAmount = 0; @endphp @foreach($bill->purchase_desc as $index => $desc_item) @php $totalAmount += $desc_item->amount; $totalIgstAmount += $desc_item->igst_amount; $totalCgstAmount += $desc_item->cgst_amount; $totalSgstAmount += $desc_item->sgst_amount; $totalNetAmount += $desc_item->net_amount; @endphp @endforeach
Details of Account Head
Sr No Account Head Debit Amount SGST Amount CGST Amount IGST Amount Net Amount Narration
{{$index + 1}} {{$desc_item['dr_account']->account_name}} {{$desc_item->amount}} {{$desc_item->sgst_percent}} {{$desc_item->sgst_amount}} {{$desc_item->cgst_percent}} {{$desc_item->cgst_amount}} {{$desc_item->igst_percent}} {{$desc_item->igst_amount}} {{$desc_item->net_amount}}
Total Amount {{$totalAmount}} {{$totalSgstAmount}} {{$totalCgstAmount}} {{$totalIgstAmount}} {{$totalNetAmount}}
Add TCS (+) Less TDS (-)
TCS Rate(%) 0.000 TDS Section TDS PAYABLE PROFESSIONAL AND CONSULTANCY SEC-194J
TCS Amount 0.00 TDS Section Non Corporate
TDS Rate {{ isset($bill->acc_party)? $bill->acc_party->party ? $bill->acc_party->party->tds_percent :'':''}}
TDS Amount (-) {{ $bill->acc_party->party->tds_percent ? $totalAmount / $bill->acc_party->party->tds_percent : '' }}
Other Detail
PAN No {{$bill->acc_party->party->pan_number}} GST No {{$bill->acc_party->party->gst_number}}
Other Deduction Discount Received 0
Net Payable Amount
Prepared By :{{$bill->created_by_user->username}} Authorized Sign. :