@php( $headerOption = \App\Http\Controllers\Controller::getHeaderOptions( $title ?? '', $subTitle ?? '', isset($filters) ? $filters : [], isset($advancedFilters) ? $advancedFilters : [], ) ) @php($headingOptions = [ ($selectedTab != 'settings') ? '
'. ((request()->has('search_text') && request()->input('search_text')) ? '' : '') .'
' : '', (function() use ($selectedTab, $routePrefix) { $map = [ 'types' => [ 'export' => 'ticket-types.export', 'modal' => 'show-modal-xl', 'label' => 'Ticket Type', ], 'categories' => [ 'export' => 'ticket-categories.export', 'modal' => 'show-modal-lg', 'label' => 'Ticket Category', ], 'outcomes' => [ 'export' => 'ticket-outcomes.export', 'modal' => 'show-modal-lg', 'label' => 'Ticket Outcome', ], ]; if (!isset($map[$selectedTab])) { return ''; } $cfg = $map[$selectedTab]; $exportRoute= route('manages.helpdesk-ticket-settings.' . $cfg['export'], '__FMT__'); $createRoute= route($routePrefix . '.create-' . $selectedTab); $btnClass = \Config::get('view.buttons.primary'); $addIcon = \Config::get('settings.icon_add'); return '
Add ' . $cfg['label'] . ''; })(), ]) @extends('admin.layouts.layout', $headerOption) @section('content')
@if($selectedTab == 'settings') @include('admin.manages.helpdesk-ticket-settings.partials.settings') @else
@if($selectedTab == 'types') @include('admin.manages.helpdesk-ticket-settings.partials.types') @elseif($selectedTab == 'categories') @include('admin.manages.helpdesk-ticket-settings.partials.categories') @elseif($selectedTab == 'outcomes') @include('admin.manages.helpdesk-ticket-settings.partials.outcomes') @endif
@endif
@endsection @push('page_script') @endpush