@php( $headerOption = \App\Http\Controllers\Controller::getHeaderOptions( '', $headerOption['subTitle'] ?? '', [], [], false, [] )) @extends('admin.layouts.layout', $headerOption) @section('content')
{{-- Header Bar --}}
Manage Applications
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Instructions --}}
Instructions:
  • To Add a new application, simply click on "Add New Application"
  • To Edit the application, click on "Edit"
  • To Delete an application and all linked permissions, mappings and attachments, click on "Delete"
  • To copy Mapping from existing application, click "Mappings"
  • To set Permissions for users, click on "Permissions"
  • To reorganize the Order of the applications, simply drag an application container up or down
{{-- Action Buttons --}} {{-- Current Applications --}}
Current Applications:
@if($templates->isEmpty())

No applications yet. Click "Add New Application" to get started.

@else
@foreach($templates as $template)
{{-- Card Header --}}
drag {{ $template->name }}
{{-- Card Body --}}

File: {{ $template->file->file_name_original ?? ($template->file->file_name ?? 'N/A') }}

Mappings: this application is mapped ({{ $template->mapped_count }} records)

Visible: {{ ($template->visible_to ?? 'everyone') == 'everyone' ? 'Everyone' : 'Specific Users' }}

Type: {{ ($template->application_type ?? 1) == 2 ? 'eSignature Application' : 'Generic Form' }}

Created: {{ $template->created_at ? $template->created_at->format('m/d/Y h:ia') : 'N/A' }}

Last Modified: {{ $template->updated_at ? $template->updated_at->format('m/d/Y h:ia') : 'N/A' }}

{{-- Action Buttons --}}
@csrf @method('DELETE')
Permissions Mappings Download Edit
@endforeach
@endif
@endsection @push('page_script') @endpush