fixed recurring tab pin feature..
This commit is contained in:
parent
11e681ba32
commit
bd0521a5c3
|
|
@ -5,57 +5,61 @@
|
|||
|
||||
<x-index.container>
|
||||
@if (! $withoutTabs)
|
||||
<x-tabs active="{{ $tabActive }}" id="tabs-{{ $type }}">
|
||||
@php
|
||||
$real_type = str_replace('-recurring', '', $type);
|
||||
@endphp
|
||||
|
||||
<x-tabs active="{{ $tabActive }}" id="tabs-{{ $real_type }}">
|
||||
<x-slot name="navs">
|
||||
@stack('document_nav_start')
|
||||
|
||||
@if ($tabActive == $type . '-unpaid')
|
||||
@if ($tabActive == $real_type . '-unpaid')
|
||||
<x-tabs.nav-pin
|
||||
id="{{ $type . '-unpaid' }}"
|
||||
id="{{ $real_type . '-unpaid' }}"
|
||||
name="{{ trans('documents.statuses.unpaid') }}"
|
||||
type="{{ $type }}"
|
||||
type="{{ $real_type }}"
|
||||
tab="unpaid"
|
||||
/>
|
||||
@else
|
||||
<x-tabs.nav-pin
|
||||
id="{{ $type . '-unpaid' }}"
|
||||
id="{{ $real_type . '-unpaid' }}"
|
||||
href="{{ route($routeTabDocument, $routeParamsTabUnpaid) }}"
|
||||
name="{{ trans('documents.statuses.unpaid') }}"
|
||||
type="{{ $type }}"
|
||||
type="{{ $real_type }}"
|
||||
tab="unpaid"
|
||||
/>
|
||||
@endif
|
||||
|
||||
@if ($tabActive == $type . '-draft')
|
||||
@if ($tabActive == $real_type . '-draft')
|
||||
<x-tabs.nav-pin
|
||||
id="{{ $type . '-draft' }}"
|
||||
id="{{ $real_type . '-draft' }}"
|
||||
name="{{ trans('documents.statuses.draft') }}"
|
||||
type="{{ $type }}"
|
||||
type="{{ $real_type }}"
|
||||
tab="draft"
|
||||
/>
|
||||
@else
|
||||
<x-tabs.nav-pin
|
||||
id="{{ $type . '-draft' }}"
|
||||
id="{{ $real_type . '-draft' }}"
|
||||
href="{{ route($routeTabDocument, $routeParamsTabDraft) }}"
|
||||
name="{{ trans('documents.statuses.draft') }}"
|
||||
type="{{ $type }}"
|
||||
type="{{ $real_type }}"
|
||||
tab="draft"
|
||||
/>
|
||||
@endif
|
||||
|
||||
@if ($tabActive == $type . '-all')
|
||||
@if ($tabActive == $real_type . '-all')
|
||||
<x-tabs.nav-pin
|
||||
id="{{ $type . '-all' }}"
|
||||
id="{{ $real_type . '-all' }}"
|
||||
name="{{ trans('general.all_type', ['type' => trans_choice($textTabDocument, 2)]) }}"
|
||||
type="{{ $type }}"
|
||||
type="{{ $real_type }}"
|
||||
tab="all"
|
||||
/>
|
||||
@else
|
||||
<x-tabs.nav-pin
|
||||
id="{{ $type . '-all' }}"
|
||||
id="{{ $real_type . '-all' }}"
|
||||
href="{{ route($routeTabDocument, ['list_records' => 'all']) }}"
|
||||
name="{{ trans('general.all_type', ['type' => trans_choice($textTabDocument, 2)]) }}"
|
||||
type="{{ $type }}"
|
||||
type="{{ $real_type }}"
|
||||
tab="all"
|
||||
/>
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue