30 lines
522 B
PHP
30 lines
522 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Sparepart;
|
|
|
|
use Livewire\Component;
|
|
use App\Models\Sparepart as Model;
|
|
use Livewire\Attributes\title;
|
|
|
|
#[title('Show Sparepart')]
|
|
class ShowSparepart extends Component
|
|
{
|
|
|
|
public Model $sparepart ;
|
|
|
|
public function back(){
|
|
return redirect()->route('spareparts.index');
|
|
}
|
|
|
|
public function edit($id){
|
|
return redirect()->route('spareparts.edit', $id);
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.sparepart.show', [
|
|
|
|
]);
|
|
}
|
|
}
|