CasperSecurity

Current Path : /var/www/orientalss.com/app/Http/Livewire/Finance/
Upload File :
Current File : /var/www/orientalss.com/app/Http/Livewire/Finance/ChartOfAccountIndexLivewire.php

<?php

namespace App\Http\Livewire\Finance;

use Livewire\Component;
use App\Models\AccountType;


class ChartOfAccountIndexLivewire extends Component
{
    public $activeTab;

    public function switchTab($id)
    {
       // dd($id);
        $check=AccountType::where('id',$id)->first();
        if($check){
            $this->activeTab = $id;
            session([
                'session_tab'=>$id,
            ]);

            return redirect('Finance/groups');

        }

    }

    public function mount(){
        // if(session('session_tab')){
        //     $this->activeTab=session('session_tab');
        // }
   // session()->forget('session_tab');
       // dd($this->activeTab);
    }
    public function getAccountTypes(){
        $response=AccountType::where('status',1)->get();
        return $response;
    }
    public function render()
    {
        $accounttypes=$this->getAccountTypes();
        return view('livewire.finance.chart-of-account-index-livewire',compact('accounttypes'));
    }
}
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY