@extends('layouts.main') @section('page-title') {{ __('Manage Resignation') }} @endsection @section('page-breadcrumb') {{ __('Resignation') }} @endsection @section('page-action')
@can('resignation create') @endcan
@endsection @section('content')
@if (in_array(\Auth::user()->type, \Auth::user()->not_emp_type)) @endif @if (Gate::check('resignation edit') || Gate::check('resignation delete')) @endif @foreach ($resignations as $resignation) @if (in_array(\Auth::user()->type, \Auth::user()->not_emp_type)) @endif @if (Gate::check('resignation edit') || Gate::check('resignation delete')) @endif @endforeach
{{ __('Employee') }}{{ __('Resignation Date') }} {{ __('Last Working Day') }} {{ __('Reason') }}{{ __('Action') }}
{{ !empty( Modules\Hrm\Entities\Employee::getEmployee($resignation->user_id)) ? Modules\Hrm\Entities\Employee::getEmployee($resignation->user_id)->name : '--' }}{{ company_date_formate($resignation->resignation_date) }} {{ company_date_formate($resignation->last_working_date) }}

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

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