Ниже приведен код, который я пытаюсь вписать в PDF-файл с помощью DOMPDF
Код: Выделить всё
[i]
Invoice #
Invoice Date :
Payment Method :
Shipping Method :
Billing Address :
[b][/b]
[/i]
[i][/i]
@endif
Shipping Address :
[b][/b]
[i][/i]
@endif
[b]Sr. No.[/b]
Product
Unit price
Discount
Quantity
Subtotal
{{$i}}
{{@$product_detail['title']}} [/b] [b]
Seller : [/b] {{@$product_detail['store_name']}}[b]
₹{{ number_format(@$product['price'], 2) }}
₹0.00
{{@$product['quantity']}}
₹{{ number_format(@$product['price']*$product['quantity'], 2) }}
[b]Sr. No.[/b]
Product
Unit price
Discount
Quantity
Delivery Address
Subtotal
{{$i}}
{{@$product_detail['title']}} [/b] [b]
Seller : [/b] {{@$product_detail['store_name']}}
₹
₹0.00
1
₹{{ number_format(@$product['price'], 2) }}
@endforeach
@else
{{trans('messages.error.order.order_product.empty')}}
@endif
@endif
Subtotal :
₹{{ number_format(@$invoiceData['invoice']['subtotal'], 2) }}
Order Discount (-) :
₹00.00
Price After Discount :
₹{{ number_format(@$invoiceData['invoice']['total'], 2) }}
Shipping Cost :
₹{{ number_format(@$invoiceData['invoice']['shipping_cost'], 2) }}
Grand Total :
₹{{ number_format(@$invoiceData['invoice']['total'], 2) }}
Подробнее здесь: https://stackoverflow.com/questions/331 ... in-laravel