<?php

namespace App\Http\Livewire;


use App\Models\User;
use App\Traits\OrderByTable;
use Carbon\Carbon;
use Livewire\Component;
use Livewire\WithFileUploads;

class Employee_ProfileController extends Component
{


    public $first_name, $last_name;
    public $breadcrumb_show = true;


    public function mount()
    {
        UserAuthPermission('Employee_profile_index');
        $user = User::find(auth()->user()->id);
        EmployeeOtherCompany($user->id);
        $this->user_id = $user->id;
        $this->pageTitle = $user->first_name . ' ' . $user->last_name;
        $this->componentName = 'Empleado';
    }

    public function render(){
        $employee = User::find($this->user_id);
        return view('livewire.employee.profile.component', compact('employee'))
        ->extends('layouts.theme.admin.app')
        ->section('content');
    }

}
