tipo_persona_options = [ User::TIPO_RFC_FISICA => User::$tipoRfcList[User::TIPO_RFC_FISICA], User::TIPO_RFC_MORAL => User::$tipoRfcList[User::TIPO_RFC_MORAL], User::TIPO_RFC_PUBLICO => User::$tipoRfcList[User::TIPO_RFC_PUBLICO], ]; $this->estado_options = DB::table('sat_estado') ->select('sat_estado.c_estado', 'sat_estado.nombre_del_estado') ->join('sat_codigo_postal', 'sat_estado.c_estado', '=', 'sat_codigo_postal.c_estado') ->join('users', 'users.domicilio_fiscal', '=', 'sat_codigo_postal.c_codigo_postal') ->distinct() ->orderBy('sat_estado.c_estado') ->pluck('sat_estado.nombre_del_estado', 'sat_estado.c_estado'); $this->status_options = $this->status_list = [ User::STATUS_ENABLED => User::$statusList[User::STATUS_ENABLED], User::STATUS_DISABLED => User::$statusList[User::STATUS_DISABLED], ]; //$this->status = User::STATUS_ENABLED; $this->status_list_class = User::$statusListClass; $this->statuses = [ User::STATUS_ENABLED => ['title' => 'Activo', 'class' => 'badge bg-label-' . User::$statusListClass[User::STATUS_ENABLED]], User::STATUS_DISABLED => ['title' => 'Deshabilitado', 'class' => 'badge bg-label-' . User::$statusListClass[User::STATUS_DISABLED]], User::STATUS_REMOVED => ['title' => 'Eliminado', 'class' => 'badge bg-label-' . User::$statusListClass[User::STATUS_REMOVED]], ]; $roles = Role::whereNotIn('name', ['Patient', 'Doctor'])->get(); $this->roles_html_select = ""; $this->status_options = [ User::STATUS_ENABLED => User::$statusList[User::STATUS_ENABLED], User::STATUS_DISABLED => User::$statusList[User::STATUS_DISABLED], ]; $this->uso_cfdi_options = UsoCfdi::selectList(); $this->regimen_fiscal_options = RegimenFiscal::selectList(); } public function render() { return view('vuexy-warehouse::livewire.product-receipts.product-receipts-index'); } }