@extends('layouts.admin') @section('page-title') {{__('Manage Company Policy')}} @endsection @section('breadcrumb') @endsection @section('action-btn')
@can('create company policy') @endcan
@endsection @section('content')
@if(Gate::check('edit company policy') || Gate::check('delete company policy')) @endif @foreach ($companyPolicy as $policy) @php $policyPath=asset(Storage::url('uploads/companyPolicy')); @endphp @if(Gate::check('edit company policy') || Gate::check('delete company policy')) @endif @endforeach
{{__('Branch')}} {{__('Title')}} {{__('Description')}} {{__('Attachment')}}{{__('Action')}}
{{ !empty($policy->branches)?$policy->branches->name:'' }} {{ $policy->title }} {{ $policy->description }} @if(!empty($policy->attachment)) No Attachment @else

-

@endif
@can('edit company policy')
@endcan @can('delete company policy')
{!! Form::open(['method' => 'DELETE', 'route' => ['company-policy.destroy', $policy->id],'id'=>'delete-form-'.$policy->id]) !!} {!! Form::close() !!}
@endif
@endsection