added tabs component, org show wip
This commit is contained in:
@@ -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()),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user