@extends('layouts.app') @section('content')

{{ __('dashboard.contracts.title') }}

{{ __('dashboard.contracts.buttonCreateNewContract') }}

{{--

{{ __('dashboard.contracts.label') }}

--}} {{--@dump($demoContracts)--}}
@forelse ( $contracts as $contract ) {{-- Demo szerződés @if($contract['type'] != 'onboarding') --}}
{{ $contract['name'] }}
{{ $contract['statusLabel'] ? $contract['statusLabel'] : $contract['status'] }}
{{ __('dashboard.contracts.since') }} @if( $contract['urgency'] )
@switch( $contract['urgency'] ) @case('action-required') @break @case('pending') @break @case('ok') @break @endswitch
@endif
{{ date('Y-m-d', strtotime($contract['date'])) }}
{{-- Demo szerződés @else
{{ $contract['name'] }}
{{ $contract['statusLabel'] ? $contract['statusLabel'] : $contract['status'] }}
{{ __('dashboard.contracts.since') }} @if( $contract['urgency'] )
@switch( $contract['urgency'] ) @case('action-required') @break @case('pending') @break @case('ok') @break @endswitch
@endif
{{ date('Y-m-d', strtotime($contract['date'])) }}
@endif--}} @empty
{{ __('dashboard.contracts.noContracts') }}
@endforelse @foreach ((array)$demoContracts as $template) {{--
devices
{{ $template['name'] }}
@if( isset( $template['tooltip']) && $template['tooltip'] != '' )
@endif
--}}
{{-- Bezárás ikon a jobb felső sarokba fixen --}} {{----}}
{{ __('dashboard.contracts.demoContractTitle') }}
{{ $template['tooltip'] }}
{{--
@if( $contract['urgency'] )
@switch( $contract['urgency'] ) @case('action-required') @break @case('pending') @break @case('ok') @break @case('demo') @endswitch
@endif
--}}
@endforeach @if(!empty($contracts)) @endif
{{ __('dashboard.contracts.buttonCreateNewContract') }}
@endsection @section('title') {{ __('meta.title.contracts') }} @endsection @section('description') {{ __('meta.description.contracts') }} @endsection