Internal Server Error

# ParseError

resources\views\examination\dashboard\index.blade.php:61

Unclosed '[' does not match ')'

LARAVEL 12.63.0
PHP 8.2.12
UNHANDLED
CODE 0
500
GET
http://localhost/examination/dashboard

### Exception trace

    Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()

resources\views\examination\dashboard\index.blade.php:61

    56                </div>
    57                <span class="bv-badge bv-badge--primary"><i class="bi bi-graph-up"></i> Live</span>
    58            </div>
    59            <div class="bv-chart-card__canvas bv-chart-card__canvas--320">
    60                <canvas id="chart-exam-activity"
    61                    data-labels='@json(["Scheduled", "Registered", "Marked", "Processed"])'
    62                    data-values='@json([$scheduled, $registered, $marked, $processed])'>
    63                </canvas>
    64            </div>
    65        </div>
    66    </div>
    67    <div class="col-lg-4">
    68        <div class="bv-chart-card">
    69            <h4 class="bv-widget__title mb-3">Status mix</h4>
    70            <div class="bv-chart-card__canvas bv-chart-card__canvas--320">
    71                <canvas id="chart-exam-mix"
    72                    data-labels='@json(["Scheduled", "Registered", "Marked", "Processed"])'
    73

14 vendor frames

    Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()

vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php:124

    Illuminate\Filesystem\Filesystem->getRequire(string, array)

vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php:57

    Illuminate\View\Engines\PhpEngine->evaluatePath(string, array)

vendor\livewire\livewire\src\Mechanisms\ExtendBlade\ExtendedCompilerEngine.php:22

    Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->evaluatePath(string, array)

vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php:76

    Illuminate\View\Engines\CompilerEngine->get(string, array)

vendor\livewire\livewire\src\Mechanisms\ExtendBlade\ExtendedCompilerEngine.php:10

    Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->get(string, array)

vendor\laravel\framework\src\Illuminate\View\View.php:208

    Illuminate\View\View->getContents()

vendor\laravel\framework\src\Illuminate\View\View.php:191

    Illuminate\View\View->renderContents()

vendor\laravel\framework\src\Illuminate\View\View.php:160

    Illuminate\View\View->render()

vendor\laravel\framework\src\Illuminate\Http\Response.php:78

    Illuminate\Http\Response->setContent(object(Illuminate\View\View))

vendor\laravel\framework\src\Illuminate\Http\Response.php:34

    Illuminate\Http\Response->__construct(object(Illuminate\View\View), integer, array)

vendor\laravel\framework\src\Illuminate\Routing\Router.php:939

    Illuminate\Routing\Router::toResponse(object(Illuminate\Http\Request), object(Illuminate\View\View))

vendor\laravel\framework\src\Illuminate\Routing\Router.php:906

    Illuminate\Routing\Router->prepareResponse(object(Illuminate\Http\Request), object(Illuminate\View\View))

vendor\laravel\framework\src\Illuminate\Routing\Router.php:821

    Illuminate\Routing\Router->Illuminate\Routing\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:180

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

app\Http\Middleware\TrackLastLogin.php:13

    8
    9class TrackLastLogin
    10{
    11    public function handle(Request $request, Closure $next): Response
    12    {
    13        $response = $next($request);
    14
    15        if ($request->user() && ! $request->session()->get('last_login_tracked')) {
    16            $request->user()->forceFill(['last_login_at' => now()])->save();
    17            $request->session()->put('last_login_tracked', true);
    18        }
    19
    20        return $response;
    21    }
    22}
    23

1 vendor frame

    App\Http\Middleware\TrackLastLogin->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

app\Http\Middleware\EnsureUserIsActive.php:26

    21
    22            return redirect()->route('login')
    23                ->withErrors(['email' => 'Your account is not active. Please contact the administrator.']);
    24        }
    25
    26        return $next($request);
    27    }
    28}
    29

46 vendor frames

    App\Http\Middleware\EnsureUserIsActive->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Routing\Middleware\SubstituteBindings.php:50

    Illuminate\Routing\Middleware\SubstituteBindings->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authenticate.php:63

    Illuminate\Auth\Middleware\Authenticate->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php:87

    Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php:48

    Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:120

    Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Illuminate\Http\Request), object(Illuminate\Session\Store), object(Closure))

vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:63

    Illuminate\Session\Middleware\StartSession->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:36

    Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:74

    Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:137

    Illuminate\Pipeline\Pipeline->then(object(Closure))

vendor\laravel\framework\src\Illuminate\Routing\Router.php:821

    Illuminate\Routing\Router->runRouteWithinStack(object(Illuminate\Routing\Route), object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Routing\Router.php:800

    Illuminate\Routing\Router->runRoute(object(Illuminate\Http\Request), object(Illuminate\Routing\Route))

vendor\laravel\framework\src\Illuminate\Routing\Router.php:764

    Illuminate\Routing\Router->dispatchToRoute(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Routing\Router.php:753

    Illuminate\Routing\Router->dispatch(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:200

    Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:180

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\livewire\livewire\src\Features\SupportDisablingBackButtonCache\DisableBackButtonCacheMiddleware.php:19

    Livewire\Features\SupportDisablingBackButtonCache\DisableBackButtonCacheMiddleware->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php:21

    Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull.php:31

    Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php:21

    Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TrimStrings.php:51

    Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Http\Middleware\ValidatePostSize.php:27

    Illuminate\Http\Middleware\ValidatePostSize->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance.php:109

    Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Http\Middleware\HandleCors.php:61

    Illuminate\Http\Middleware\HandleCors->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Http\Middleware\TrustProxies.php:58

    Illuminate\Http\Middleware\TrustProxies->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\InvokeDeferredCallbacks.php:22

    Illuminate\Foundation\Http\Middleware\InvokeDeferredCallbacks->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Http\Middleware\ValidatePathEncoding.php:26

    Illuminate\Http\Middleware\ValidatePathEncoding->handle(object(Illuminate\Http\Request), object(Closure))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:219

    Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:137

    Illuminate\Pipeline\Pipeline->then(object(Closure))

vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:175

    Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Illuminate\Http\Request))

vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:144

    Illuminate\Foundation\Http\Kernel->handle(object(Illuminate\Http\Request))

scripts\phase4_debug_url.php:20

    15$req = Illuminate\Http\Request::create($url, 'GET');
    16$req->setLaravelSession(app('session.store'));
    17$req->setUserResolver(fn () => $user);
    18
    19try {
    20    $res = $http->handle($req);
    21    $code = $res->getStatusCode();
    22    $c = $res->getContent();
    23    echo "CODE={$code}\n";
    24    if (preg_match('/exception-message[^>]*>(.*?)</s', $c, $m)) {
    25        echo 'MSG='.trim(html_entity_decode(strip_tags($m[1])))."\n";
    26    }
    27    if (preg_match('/<div class="exc-message"[^>]*>\s*(.*?)\s*<\/div>/s', $c, $m)) {
    28        echo 'MSG2='.trim(html_entity_decode(strip_tags($m[1])))."\n";
    29    }
    30    if (preg_match('/Unable to locate file in Vite manifest: ([^.<]+)/', $c, $m)) {
    31        echo 'VITE='.$m[1]."\n";
    32

### Queries

mysql

    select * from `users` where `email` = 'superadmin@bvsis.local' limit 1

10.47ms
mysql

    delete from `sessions` where `id` = 'tgzyOg4R5I8vKVqVqiZiAxOFBeMTIPApRd6US2LS'

0.6ms
mysql

    select * from `sessions` where `id` = '7RNLmKURlGFRzTMtmnCIrLhz8uw7GV3OqaDW393w' limit 1

0.73ms
mysql

    select * from `cache` where `key` in ('bv-sis-cache-spatie.permission.cache')

3.31ms
mysql

    select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (1) and `model_has_roles`.`model_type` = 'App\Models\User'

4.73ms
mysql

    select * from `examination_periods` where `is_current` = 1 and `status` = 'active' and `examination_periods`.`deleted_at` is null limit 1

0.83ms
mysql

    select * from `academic_sessions` where `academic_sessions`.`id` in (1) and `academic_sessions`.`deleted_at` is null

2.05ms
mysql

    select count(*) as aggregate from `examination_periods` where `status` = 'active' and `examination_periods`.`deleted_at` is null

0.81ms
mysql

    select count(*) as aggregate from `exam_schedules` where `status` = 'active' and `exam_schedules`.`deleted_at` is null

1.57ms
mysql

    select count(*) as aggregate from `exam_registrations` where `status` = 'active' and `exam_registrations`.`deleted_at` is null

3.44ms
mysql

    select count(*) as aggregate from `examination_marks` where `mark_status` = 'draft' and `examination_marks`.`deleted_at` is null

0.84ms
mysql

    select count(*) as aggregate from `examination_marks` where `mark_status` = 'submitted' and `examination_marks`.`deleted_at` is null

0.83ms
mysql

    select count(*) as aggregate from `student_course_results` where `status` = 'active' and `student_course_results`.`deleted_at` is null

0.78ms
mysql

    select * from `examination_periods` where `status` = 'active' and `examination_periods`.`deleted_at` is null order by `created_at` desc limit 5

0.78ms
mysql

    select * from `academic_sessions` where `academic_sessions`.`id` in (1) and `academic_sessions`.`deleted_at` is null

0.71ms
mysql

    select * from `exam_schedules` where `status` = 'active' and `exam_date` >= '2026-07-11' and `exam_schedules`.`deleted_at` is null order by `exam_date` asc, `start_time` asc limit 10

0.74ms
mysql

    select `permissions`.*, `model_has_permissions`.`model_id` as `pivot_model_id`, `model_has_permissions`.`permission_id` as `pivot_permission_id`, `model_has_permissions`.`model_type` as `pivot_model_type` from `permissions` inner join `model_has_permissions` on `permissions`.`id` = `model_has_permissions`.`permission_id` where `model_has_permissions`.`model_id` in (1) and `model_has_permissions`.`model_type` = 'App\Models\User'

1.85ms

## Headers

host
localhost
user-agent
Symfony
accept
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
accept-language
en-us,en;q=0.5
accept-charset
ISO-8859-1,utf-8;q=0.7,*;q=0.7

## Body

// No request body

## Routing

controller
App\Http\Controllers\Examination\ExaminationDashboardController@index
route name
examination.dashboard
middleware
web, auth, App\Http\Middleware\EnsureUserIsActive, App\Http\Middleware\TrackLastLogin

## Routing parameters

// No routing parameters