@extends('layouts.base') @section('title', 'Welcome in SoftCRM') @section('caption', 'Welcome in SoftCRM') @section('content')

Clients: {{ Cache::get('countClients') }} ({{ Cache::get('deactivatedClients') }})

Companies: {{ Cache::get('countCompanies') }} ({{ Cache::get('deactivatedCompanies') }})

Employees: {{ Cache::get('countFinances') }} ({{ Cache::get('deactivatedEmployees') }})

Deals: {{ Cache::get('countDeals') }} ({{ Cache::get('deactivatedDeals') }})

{!! $tasksGraphData->render() !!}
{!! $itemsCountGraphData->render() !!}
Latest tasks {{ Cache::get('countTasks') }} Completed: {{ Cache::get('completedTasks') }} | Uncompleted: {{ Cache::get('uncompletedTasks') }}
@if(count($dataWithAllTasks) > 0) @foreach ($dataWithAllTasks as $result) {{ $result['created_at']->diffForHumans() }} Duration: {{ $result['duration'] . ' days' }} {{ $result['name'] }} @endforeach @else There is no tasks. @endif
Latest add companies {{ Cache::get('countCompanies') }}
@if(count($dataWithAllCompanies) > 0) @foreach ($dataWithAllCompanies as $result) {{ $result->name }} Phone: {{ $result->phone }} @endforeach @else There is no companies. @endif
Latest add products {{ Cache::get('countProducts') }}
@if(count($dataWithAllProducts) > 0) @foreach ($dataWithAllProducts as $result) {{ $result->created_at->diffForHumans() }} {{ $result->count }} qty {{ Cknow\Money\Money::{$currency}($result->price) }} {{ $result->name }} @endforeach @else There is no products. @endif
@endsection