Add SLAController and related routes, update create view

Introduced a new SLAController for handling SLA-related operations, including necessary routes and breadcrumb updates. Replaced the select input with a text input in the create view for better flexibility.
This commit is contained in:
Daeng Deni Mardaeni
2024-10-31 14:24:21 +07:00
10 changed files with 1035 additions and 503 deletions

View File

@@ -0,0 +1,65 @@
<?php
namespace Modules\Lpj\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class SLAController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
return view('lpj::SLA.index');
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
return view('lpj::create');
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Show the specified resource.
*/
public function show($id)
{
return view('lpj::show');
}
/**
* Show the form for editing the specified resource.
*/
public function edit($id)
{
return view('lpj::edit');
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy($id)
{
//
}
}

18
app/Models/SLA.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class SLA extends Model
{
use HasFactory;
protected $table = 'sla';
/**
* The attributes that are mass assignable.
*/
protected $guarded = ['id'];
}