@extends('layouts.admin') @section('page-title') {{__('Manage Termination')}} @endsection @section('breadcrumb') @endsection @section('action-btn')
@can('create termination') @endcan
@endsection @section('content')
@role('company') @endrole @if(Gate::check('edit termination') || Gate::check('delete termination')) @endif @foreach ($terminations as $termination) @role('company') @endrole {{-- --}} @if(Gate::check('edit termination') || Gate::check('delete termination')) @endif @endforeach
{{__('Employee Name')}}{{__('Termination Type')}} {{__('Notice Date')}} {{__('Termination Date')}} {{__('Description')}}{{__('Action')}}
{{ !empty($termination->employee())?$termination->employee()->name:'' }}{{ !empty($termination->terminationType())?$termination->terminationType()->name:'' }} {{ \Auth::user()->dateFormat($termination->notice_date) }} {{ \Auth::user()->dateFormat($termination->termination_date) }}{{ $termination->description }} @can('edit termination') @endcan @can('delete termination')
{!! Form::open(['method' => 'DELETE', 'route' => ['termination.destroy', $termination->id],'id'=>'delete-form-'.$termination->id]) !!} {!! Form::close() !!}
@endcan
@endsection