@extends('layouts.main') @section('page-title') {{ __('Manage Company Policy') }} @endsection @section('page-breadcrumb') {{ __('Company Policy') }} @endsection @section('page-action')
@can('attendance create') @endcan
@endsection @section('content')
@if (Gate::check('companypolicy edit') || Gate::check('companypolicy delete')) @endif @foreach ($companyPolicy as $policy) @if (Gate::check('companypolicy edit') || Gate::check('companypolicy delete')) @endif @endforeach
{{ !empty(company_setting('hrm_branch_name')) ? company_setting('hrm_branch_name') : __('Branch') }} {{ __('Title') }} {{ __('Description') }} {{ __('Attachment') }}{{ __('Action') }}
{{ !empty($policy->branches) ? $policy->branches->name : '--' }} {{ $policy->title }}

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

@if (!empty($policy->attachment)) @else

--

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