@extends('layouts.main') @section('page-title') {{ __('Manage Termination') }} @endsection @section('page-breadcrumb') {{ __('Termination') }} @endsection @section('page-action')
@can('termination create') @endcan
@endsection @section('content')
@if (in_array(\Auth::user()->type, \Auth::user()->not_emp_type)) @endif @can('termination description') @endcan @if (Gate::check('termination edit') || Gate::check('termination delete')) @endif @foreach ($terminations as $termination) @if (in_array(\Auth::user()->type, \Auth::user()->not_emp_type)) @endif @can('termination description') @endcan @if (Gate::check('termination edit') || Gate::check('termination delete')) @endif @endforeach
{{ __('Employee') }}{{ __('Termination Type') }} {{ __('Notice Date') }} {{ __('Termination Date') }}{{ __('Description') }}{{ __('Action') }}
{{ !empty( Modules\Hrm\Entities\Employee::getEmployee($termination->user_id)) ? Modules\Hrm\Entities\Employee::getEmployee($termination->user_id)->name : '' }}{{ !empty($termination->termination_type) ? ($termination->terminationType->name ) ?? '' : '' }} {{ company_date_formate($termination->notice_date) }} {{ company_date_formate($termination->termination_date) }} @can('termination edit') @endcan @can('termination delete')
{{Form::open(array('route'=>array('termination.destroy', $termination->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endsection