@php
$widgets = \Vanguard\Plugins\Vanguard::availableWidgets(auth()->user());
\Illuminate\Support\Facades\Log::info('Available widgets', ['widgets' => $widgets]);
@endphp
@extends('layouts.app')
@section('page-title', __('Dashboard'))
@section('page-heading', __('Dashboard'))
@section('breadcrumbs')
@lang('Dashboard')
@stop
@section('content')
@include('partials.messages')
@if($contractSignature && !in_array($contractSignature->status, ['approved', 'accepted']))
Your onboarding is complete. Please wait for your contract to be approved by an administrator before proceeding.
@endif
@foreach (\Vanguard\Plugins\Vanguard::availableWidgets(auth()->user()) as $widget)
@if ($widget->width)
@endif
{!! app()->call([$widget, 'render']) !!}
@if($widget->width)
@endif
@endforeach
@stop
@section('scripts')
@foreach (\Vanguard\Plugins\Vanguard::availableWidgets(auth()->user()) as $widget)
@if (method_exists($widget, 'scripts'))
{!! app()->call([$widget, 'scripts']) !!}
@endif
@endforeach
@stop