@lang('modules.leaves.leaveType') @lang('modules.leaves.noOfLeaves') @lang('modules.leaves.monthLimit') @lang('modules.leaves.leavePaidStatus') @lang('app.department') @lang('app.designation') @lang('app.action') @forelse($leaveTypes as $key=>$leaveType)

{{ mb_ucwords($leaveType->type_name) }}

{{ $leaveType->no_of_leaves }} {{ ($leaveType->monthly_limit > 0) ? $leaveType->monthly_limit : '--' }} @if ($leaveType->paid == 1) @lang('modules.credit-notes.paid') @else @lang('modules.credit-notes.unpaid') @endif
    @foreach ($departments as $department) @if(!is_null($leaveType->department) && in_array($department->id, json_decode($leaveType->department)))
  1. {{$department->team_name}}
  2. @endif @endforeach
    @foreach ($designations as $designation) @if(!is_null($leaveType->designation) && in_array($designation->id, json_decode($leaveType->designation)))
  1. {{$designation->name}}
  2. @endif @endforeach
@empty @endforelse