@extends('admin.layouts.app') @php $document_data = @$document_data; $document_section_type = config('common.document_section'); if(!empty($agency_type) && $agency_type == 3) { unset($document_section_type[1]); } @endphp @section('content')

Document Manager

Required Documents

@if(check_route_access('dr.add.form')) @endif
{{ csrf_field() }} @if($agency_id == 0)
@endif @if($agency_type != 2)
@endif
Reset
@include('admin.includes.status')
@if($agency_id == 0) @endif @if (!empty($document_data)) @foreach($document_data as $document) @php $requirement_type = ($document->requirement_type == 1) ? "Required" : "Optional"; $document_section = (!empty($document_section_type[$document->document_section])) ? $document_section_type[$document->document_section] : ""; if($document->visibility==1){ $visibility = "Admin"; }elseif($document->visibility==2){ $visibility = "User"; }elseif($document->visibility==3){ $visibility = "Both"; } @endphp @if($agency_id == 0) @endif @endforeach @endif
Agency NameDocument Name Document Section Requirement Type Visibility Action
{{ $document->agency_name == '' ? '-': $document->agency_name }}{{ $document->document_type }} {{ $document_section }} {{ $requirement_type }} {{ $visibility }} @if(check_route_access('dr.edit.form')) @endif @if(check_route_access('dr.delete')) @endif @if(!empty($document->document_template)) @endif
@endsection @section('scripts') @endsection