@extends('layouts.main') @section('page-title') {{ __('Manage Promotion') }} @endsection @section('page-breadcrumb') {{ __('Promotion') }} @endsection @section('page-action')
@can('promotion create') @endcan
@endsection @section('content')
@if (in_array(\Auth::user()->type, \Auth::user()->not_emp_type)) @endif @if (Gate::check('promotion edit') || Gate::check('promotion delete')) @endif @foreach ($promotions as $promotion) @if (in_array(\Auth::user()->type, \Auth::user()->not_emp_type)) @endif @if (Gate::check('promotion edit') || Gate::check('promotion delete')) @endif @endforeach
{{ __('Employee') }}{{ !empty(company_setting('hrm_designation_name')) ? company_setting('hrm_designation_name') : __('Designation') }} {{ __('Promotion Title') }} {{ __('Promotion Date') }} {{ __('Description') }}{{ __('Action') }}
{{ !empty( Modules\Hrm\Entities\Employee::getEmployee($promotion->user_id)) ? Modules\Hrm\Entities\Employee::getEmployee($promotion->user_id)->name : '--' }}{{ !empty($promotion->designation) ? ($promotion->designation->name ) ?? '' : '--' }} {{ $promotion->promotion_title }} {{ company_date_formate($promotion->promotion_date) }}

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

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