@extends('layouts.master') @section('title', 'Dashboard') @section('breadcrumb-text')

{{__('Hello,')}} {{ Auth::user()->roles[0]->name }}

{{__('You can manage privileges access to the website and launch it in seconds.')}}

@endsection @section('content')
@can('dashboard-yearly-sales-chart-view')

{{ __('Weekly Bonus') }}

@endcan @can('dashboard-sales-by-country-chart-view')

{{ __('Monthly Bonus') }}

@endcan
@can('logs-list')
@include('backend.dashboard-logs')
@endcan @if(Auth::user()->hasRole(['translator','translation-manager'])) @can('dashboard-words-count')
{{__('Total Words:')}} {{ $countStaticDataKeys }}
{{__('Total PDF Settings:')}} {{ $countPdfSettings }}
@foreach ($countWords as $item) @if(Auth::user()->hasRole(['translator']))
{{ ucwords($item['langauge_name']) }} {{ __('Words') }}
{{ $item['pending'] }}

{{ __('Pending') }}

{{ $item['approved'] }}

{{ __('Approved') }}

{{ $item['rejected'] }}

{{ __('Rejected') }}

@elseif(Auth::user()->hasRole(['translation-manager']))
{{ ucwords($item['langauge_name']) }} {{__('Pending Words :')}} {{ $item['pending'] }}
@endif @endforeach
@foreach ($pdfCountWords as $item) @if(Auth::user()->hasRole(['translator']))
{{ ucwords($item['langauge_name']) }} {{__('PDF Settings')}}
{{ $item['pending'] }}

{{ __('Pending') }}

{{ $item['approved'] }}

{{ __('Approved') }}

{{ $item['rejected'] }}

{{ __('Rejected') }}

@elseif(Auth::user()->hasRole(['translation-manager']))
{{ ucwords($item['langauge_name']) }} {{__('PDF Settings :')}} {{ $item['pending'] }}
@endif @endforeach
@endcan @endif @endsection @push('scripts') @endpush