@php $showInitially = true; @endphp @forelse ( $contracts as $key => $_contracts )
@if($key != 'empty') {{$key}} @endif
@forelse( $_contracts as $contract) @php $showInitially = $contract['showInitially']; if ( Carbon\Carbon::parse($contract['updated'])->diffInDays(Carbon\Carbon::now()) >= 1 && $contract['partner']['email'] != null && $contract['partner']['email'] != 'deleted.user@everprove.com' && $contract['urgency'] == 'pending' ) $remind_button = true; else $remind_button = false; @endphp
{{ $contract['name'] }}
{{ $contract['template'] }}
{{ $contract['statusLabel'] ? $contract['statusLabel'] : 'Létrehozva' }}
{{ date('Y-m-d', strtotime($contract['date'])) }}
@empty @if($search) @if($type == "contract") {{ __('dashboard.contracts.search.notFoundContract') }} "{{$search}}" @elseif($type == "template") "{{$search}}" {{ __('dashboard.contracts.search.notFoundTemplate') }} @endif @else @if($type == "contract")
{{ __('dashboard.contracts.noContracts') }}
@elseif($type == "template") {{ __('dashboard.contracts.noTemplates') }} @endif @endif @endforelse @empty @if($search)
{{ __('dashboard.contracts.search.noResult.title') }}
{{ __('dashboard.contracts.search.noResult.description') }} '{{ $search }}'. {{ __('dashboard.contracts.search.noResult.tryAnother') }}
@else
{{ __('dashboard.contracts.noContracts') }}
@endif @endforelse @if(!empty($contracts) && !$showInitially) @endif