added tabs component, org show wip

This commit is contained in:
2025-04-07 19:59:30 +01:00
parent 2e2c0a033b
commit 5d042900ae
10 changed files with 158 additions and 8 deletions

View File

@@ -2,10 +2,16 @@
namespace App\Http\Controllers;
use App\Models\Provider;
use Illuminate\Http\Request;
use Inertia\Inertia;
class OrganisationController extends Controller
{
public function show()
public function show(Request $request)
{
return inertia('organisations/Show');
return inertia('organisations/Show', [
'providers' => Inertia::lazy(fn () => Provider::whereOrganisationId($request->route('organisation'))->get()),
]);
}
}