Current File : //home/tradevaly/www/app/Http/Controllers/Admin/ProductInvoiceController.php |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\ProductInvoices;
use App\Models\OrderItem;
use Brian2694\Toastr\Facades\Toastr;
use Carbon\Carbon;
class ProductInvoiceController extends Controller
{
public function productInvoice($id)
{
$invoice = ProductInvoices::where('order_id',$id)->firstOrFail();
$orders = OrderItem::where('order_id',$id)->get();
return view('user.pages.invoice.product_invoice',compact('invoice','orders'));
}
public function productMoneyReceipt($id)
{
$invoice = ProductInvoices::where('order_id',$id)->firstOrFail();
return view('user.pages.invoice.product_money_receipt',compact('invoice'));
}
}