%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pjc/app/Http/Livewire/
Upload File :
Create Path :
Current File : /var/www/pjc/app/Http/Livewire/Counter.php

<?php

namespace App\Http\Livewire;

use App\pianficazioneutente;
use Livewire\Component;

class Counter extends Component
{

    public $count = 0;


    public $mese;
    public $utente;

    protected $listeners = ['refreshTable' => 'like'];

    public function mount($me,$ut)
    {
        $this->mese = $me;
        $this->utente = $ut;
        $this->count = pianficazioneutente::where('mese',$this->mese)->where('idUtente',$this->utente)->sum('ore');
    }

  

    public function increment()
    {
        $this->count++;
    }

    public function like()
    {
       
        $this->count = pianficazioneutente::where('mese',$this->mese)->where('idUtente',$this->utente)->sum('ore');
 
     
    }

    public function render()
    {
        return view('livewire.counter');
    }
}

Zerion Mini Shell 1.0