mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
feat(sales): WIP: add SaleController, Current_sales component, and view
- Added a new file `SaleController.php` in the `app/Http/Controllers` directory to handle sales-related logic. - Created a new file `Current_sales.php` in the `app/View/Components/Sales` directory to define the `Current_sales` component. - Added a new file `current_sales.blade.php` in the `resources/views/components/sales` directory to display the current sales. - Modified the `web.php` routes file to include a route for accessing the sales page. These changes introduce functionality related to displaying and managing sales data on the website.
This commit is contained in:
17
app/View/Components/Sales/Current_sales.php
Normal file
17
app/View/Components/Sales/Current_sales.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\Sales;
|
||||
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class Current_sales extends Component
|
||||
{
|
||||
public function __construct(public array $sales)
|
||||
{
|
||||
}
|
||||
public function render(): View
|
||||
{
|
||||
return view('components.sales.current_sales');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user