concepto = Concepto::findOrFail($id); $this->fecha_pago = $this->concepto->fecha_pago ? Carbon::parse($this->concepto->fecha_pago)->format('Y-m-d') : null; $this->dispatch('open-concepto-modal'); } #[On('create-concepto')] public function createMaterial() { $this->reset('concepto'); $this->dispatch('open-concepto-modal'); } public function render() { return view('livewire.conceptos', [ 'tipos'=> TipoConcepto::where('id','!=','3')->get(), 'conceptos'=> Concepto::where('tipo','=','3')->get(), ]); } }