@extends('layouts.app') @section('title', __('goals::goals.group') . ' ' . '(' . $group_name . ')') @section('content') @if (!empty($status))
{{ $status['msg'] }}
@endif

@lang('goals::goals.group') {{ '(' . $group_name . ')' }}

@component('components.filters', ['title' => __('report.filters')])
{!! Form::label('user_id', __('user.users') . ':') !!} {!! Form::select('user_id', $users ?? [], request('user_id'), [ 'class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all'), 'onchange' => 'this.form.submit()', ]) !!}
@endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => __('goals::goals.groups')]) @can('goals.create') @slot('tool')
@lang('goals::goals.add_user')
@endslot @endcan @can('goals.view') @forelse($goal_summary as $entry) @php $childCount = !empty($entry['child_goals']) ? count($entry['child_goals']) : 0; $rowspan = 1 + $childCount; $rewardTaken = round($entry['percentage'], 2) >= 100 ? $entry['reward'] : 0; @endphp {{-- Parent row --}} @if (isset($entry['target_amount'])) @else @endif
@lang('user.name') @lang('goals::goals.goal_type') @lang('goals::goals.item_name') @lang('goals::goals.target_amount') @lang('goals::goals.reward') @lang('goals::goals.actual_sales') @lang('goals::goals.reward_taken') @lang('goals::goals.percentage_done') @lang('messages.action')
{{ $entry['user_name'] }} {{ $entry['goal_type'] }} {{ $entry['item_name'] }}@format_currency($entry['target_amount']) @format_currency($entry['reward'] ?? 0) @format_currency($entry['actual_sales']){{ $entry['target_qty'] }} @format_currency($entry['reward'] ?? 0) {{ $entry['actual_sales'] }}@format_currency($rewardTaken) {{ round($entry['percentage'], 2) }}%
Fatal error: Uncaught Error: Call to undefined function route() in /home/rooti/public_html/x.rooti.dev/Modules/Goals/Resources/views/goals/index.blade.php:98 Stack trace: #0 {main} thrown in /home/rooti/public_html/x.rooti.dev/Modules/Goals/Resources/views/goals/index.blade.php on line 98