@extends('layouts.admin') @section('page-title') {{__('Manage Goal Tracking')}} @endsection @section('breadcrumb') @endsection @push('css-page') @endpush @push('script-page') @endpush @section('action-btn')
@can('create goal tracking') @endcan
@endsection @section('content')
@foreach ($goalTrackings as $goalTracking) @if( Gate::check('edit goal tracking') ||Gate::check('delete goal tracking')) @endif @endforeach
{{__('Goal Type')}} {{__('Subject')}} {{__('Branch')}} {{__('Target Achievement')}} {{__('Start Date')}} {{__('End Date')}} {{__('Rating')}} {{__('Progress')}} {{__('Action')}}
{{ !empty($goalTracking->goalType)?$goalTracking->goalType->name:'' }} {{$goalTracking->subject}} {{ !empty($goalTracking->branches)?$goalTracking->branches->name:'' }} {{$goalTracking->target_achievement}} {{\Auth::user()->dateFormat($goalTracking->start_date)}} {{\Auth::user()->dateFormat($goalTracking->end_date)}} @for($i=1; $i<=5; $i++) @if($goalTracking->rating < $i) @else @endif @endfor
{{$goalTracking->progress}}%
@can('edit goal tracking') @endcan @can('delete goal tracking')
{!! Form::open(['method' => 'DELETE', 'route' => ['goaltracking.destroy', $goalTracking->id],'id'=>'delete-form-'.$goalTracking->id]) !!} {!! Form::close() !!}
@endcan
@endsection