D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
school.dentostock.com
/
app
/
View
/
Components
/
Filename :
FrontendResult.php
back
Copy
<?php namespace App\View\Components; use Closure; use App\Models\FrontResult; use Illuminate\View\Component; use Illuminate\Contracts\View\View; class FrontendResult extends Component { /** * Create a new component instance. */ public function __construct() { // } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { $frontResults = FrontResult::where('school_id', app('school')->id)->get(); return view('components.' . activeTheme() . '.frontend-result', compact('frontResults')); } }