Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Livewire\Components;
use App\Classes\Cart as ClassesCart;
use App\Livewire\Component;
use Livewire\Attributes\On;
class Cart extends Component
{
public $cartCount;
public function mount()
{
$this->cartCount = ClassesCart::get()->count();
if (ClassesCart::get()->isEmpty()) {
$this->skipRender();
}
}
#[On('cartUpdated')]
public function onCartUpdated()
{
$this->cartCount = ClassesCart::get()->count();
}
public function render()
{
return view('components.cart');
}
}