@extends('layouts.main') @section('page-title') {{ __('Manage Complaint') }} @endsection @section('page-breadcrumb') {{ __('Complaint') }} @endsection @section('page-action')
@can('complaint create') @endcan
@endsection @section('content')
@if (Gate::check('complaint edit') || Gate::check('complaint delete')) @endif @foreach ($complaints as $complaint) @if (Gate::check('complaint edit') || Gate::check('complaint delete')) @endif @endforeach
{{ __('Complaint From') }} {{ __('Complaint Against') }} {{ __('Title') }} {{ __('Complaint Date') }} {{ __('Description') }}{{ __('Action') }}
{{ !empty( Modules\Hrm\Entities\Employee::getEmployee($complaint->complaint_from)) ? Modules\Hrm\Entities\Employee::getEmployee($complaint->complaint_from)->name : '--' }} {{ !empty( Modules\Hrm\Entities\Employee::getEmployee($complaint->complaint_against)) ? Modules\Hrm\Entities\Employee::getEmployee($complaint->complaint_against)->name : '--' }} {{ $complaint->title }} {{ company_date_formate($complaint->complaint_date) }}

{{ !empty($complaint->description) ? $complaint->description : '' }}

@can('complaint edit') @endcan @can('complaint delete')
{{Form::open(array('route'=>array('complaint.destroy', $complaint->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endsection