first upload all files

This commit is contained in:
NW
2023-06-11 13:14:03 +01:00
parent f14dbc52b5
commit c08b36d1b6
1705 changed files with 106852 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
<?php
namespace Modules\Account\Http\Controllers;
class AccountOrdersController
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$orders = auth()->user()
->orders()
->latest()
->paginate(20);
return view('public.account.orders.index', compact('orders'));
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
$order = auth()->user()
->orders()
->with(['products', 'coupon', 'taxes'])
->where('id', $id)
->firstOrFail();
return view('public.account.orders.show', compact('order'));
}
}