JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@extends('layouts.admin') @section('page-title') {{ __('Manage Indicator') }} @endsection @section('breadcrumb') @endsection @section('action-button') @can('Create Indicator') @endcan @endsection @section('content')
@if (Gate::check('Edit Indicator') || Gate::check('Delete Indicator') || Gate::check('Show Indicator')) @endif @foreach ($indicators as $indicator) @php if (!empty($indicator->rating)) { $rating = json_decode($indicator->rating, true); if (!empty($rating)) { $starsum = array_sum($rating); $overallrating = $starsum / count($rating); } else { $overallrating = 0; } } else { $overallrating = 0; } @endphp @endforeach
{{ __('Branch') }} {{ __('Department') }} {{ __('Designation') }} {{ __('Overall Rating') }} {{ __('Added By') }} {{ __('Created At') }}{{ __('Action') }}
{{ !empty($indicator->branches) ? $indicator->branches->name : '' }} {{ !empty($indicator->departments) ? $indicator->departments->name : '' }} {{ !empty($indicator->designations) ? $indicator->designations->name : '' }} @for ($i = 1; $i <= 5; $i++) @if ($overallrating < $i) @if (is_float($overallrating) && round($overallrating) == $i) @else @endif @else @endif @endfor ({{ number_format($overallrating, 1) }}) {{ !empty($indicator->user) ? $indicator->user->name : '' }} {{ \Auth::user()->dateFormat($indicator->created_at) }} @if (Gate::check('Edit Indicator') || Gate::check('Delete Indicator') || Gate::check('Show Indicator')) @can('Show Indicator') @endcan @can('Edit Indicator') @endcan @can('Delete Indicator')
{!! Form::open([ 'method' => 'DELETE', 'route' => ['indicator.destroy', $indicator->id], 'id' => 'delete-form-' . $indicator->id, ]) !!}
@endcan
@endif
@endsection @push('script-page') @endpush