@extends('layout') @section('pageScripts') @include('admin.database.scripts.custom_policies') @endsection @section('title') Edit {{$group->name}} @endsection @section('content')
{!! csrf_field() !!}
Months
Authority
Months
Authority

{!! csrf_field() !!}
    @foreach($group->custom_policies as $customPolicy)
  • {{$customPolicy->name}} Delete Edit

    @if($customPolicy->type == 'leave')
    deductible == 1?'checked':''}}>
    hides_balance == 1?'checked':''}}>
    Months
    Authority
      @foreach(explode(',',$customPolicy->line_managers) as $lineManager) @if(in_array($lineManager,['hr_review','hr_approve']))
    • {{$currentIndex++}} HR Administrator
    • @else
    • {{ $currentIndex++ }} Line Manager: {{ $lineManager }} Remove
    • @endif @endforeach
    @else
    Months
    Authority
      @foreach(explode(',',$customPolicy->line_managers) as $lineManager) @if(in_array($lineManager,['hr_review','hr_approve']))
    • {{$currentIndex++}} HR Administrator
    • @else
    • {{ $currentIndex++ }} Line Manager: {{ $lineManager }} Remove
    • @endif @endforeach
    @endif
  • @endforeach
@endsection