Sindbad~EG File Manager

Current Path : /proc/self/root/var/www/html/eva.sumar.com.py/app/Http/Livewire/
Upload File :
Current File : //proc/self/root/var/www/html/eva.sumar.com.py/app/Http/Livewire/Frontboletines.php

<?php

namespace App\Http\Livewire;

use Livewire\Component;
use Livewire\WithPagination;
use App\Models\Boletin; 

class Frontboletines extends Component{

    use WithPagination;

    protected $paginationTheme = 'bootstrap';

    protected $queryString = ['search' => ['except' => '']];

    public $search='',$categoria='',$boletintitulo,$navegador=[];

    public function render(){

        if($this->categoria){
            $boletines = Boletin::where('titulo','LIKE','%'.$this->search.'%')
                ->where('padre',$this->categoria)->paginate(20);
            $this->boletintitulo = Boletin::find($this->categoria);
        }else{
            $boletines = Boletin::where('titulo','LIKE','%'.$this->search.'%')
                ->wherenull('padre')->paginate(20);
        }

        return view('livewire.frontboletines',["boletines"=>$boletines]);
    }

    public function padre($id){ 
        $this->categoria=$id;
        $boletin = Boletin::find($id);
        $this->navegador[$id]=$boletin->titulo; 
    }

    public function deletepadre(){
        $this->categoria="";
        $this->navegador=[];
    }

    public function deletenavegador($id){
        $this->categoria=$id;
        while(count($this->navegador) >= $id){
            $id+=1;
            unset($this->navegador[$id]);
        }
    }

}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists