Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux server335.web-hosting.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : cardxfeb ( 2452)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /home/cardxfeb/www/app/Livewire/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/cardxfeb/www/app/Livewire/VcardLists.php
<?php

namespace App\Livewire;

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

class VcardLists extends Component
{
    public $search;
    protected $listeners = ['refresh' => '$refresh', 'resetPageTable', 'deleteVcard'];
    protected $queryString = ['search'];

    use WithPagination;

    protected $paginationTheme = 'bootstrap';
    public function placeholder(){
         return view('lazy_loading.user_vcards');
    }

    public function render()
    {
        $vcards = Vcard::with(['tenant.user', 'template'])
                      ->where('name', 'like', '%' . $this->search . '%')
                      ->where('tenant_id', getLogInTenantId())
                      ->orderBy('created_at', 'desc')
                      ->paginate(9);

        return view('livewire.vcard-lists', compact('vcards'));
    }
}

Al-HUWAITI Shell