Your task is to generate a sales invoice for an e-commerce site based on the collection object value returned from the following example code:
$orders = Order::with(['invoice','orderdetail'])->find(6);
Attached is the sample collection object value saved as invoice.json.
I am using setasign fpdf library imported using composer.
I'll provide further details upon receiving your bidding.