Refactored Manufacturer and Buildplate Livewire components. Introduced create, edit, and show components with route-based navigation. Updated views for consistency and cleaned up unused modals and legacy code. Adjusted styles and table layouts.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Manufacturer;
|
||||
|
||||
use App\Models\Manufacturer as Model;
|
||||
use Livewire\Attributes\title;
|
||||
use Livewire\Component;
|
||||
|
||||
#[title('Manufacturer List')]
|
||||
class ShowManufacturer extends Component{
|
||||
|
||||
public Model $manufacturer ;
|
||||
|
||||
public function edit($id){
|
||||
return $this->redirectRoute('manufacturer.edit', $id, navigate: true);
|
||||
}
|
||||
public function back(){
|
||||
return $this->redirectRoute('manufacturer.index', navigate: true);
|
||||
}
|
||||
public function render()
|
||||
{
|
||||
|
||||
return view('livewire.manufacturer.show', [
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user