This commit is contained in:
merdan 2022-11-08 13:25:32 +05:00 committed by ilmedova
parent 525c0823a3
commit 893f076c60
3 changed files with 33 additions and 19 deletions

View File

@ -64,6 +64,19 @@
'upload_failure' => 'File upload failed',
'upload_max_size' => 'Max size exceeded'
],
'dashboard' => [
'total_tickets' => "Total tickets",
'open_tickets' => "Open tickets",
'closed_tickets' => "Closed tickets",
'new_applications' => "New applications",
'applied_applications' => "Applied applications",
'approved_applications' => "Approved applications",
'refined_applications' => "Refined applications",
'new' => 'new',
'approved' => 'approved',
'applied' => 'applied',
'refined' => 'refined',
],
'yes' => 'Yes',
'no' => 'No',
'client' => [
@ -85,7 +98,8 @@
'list_title' => 'tickets',
'statuses' => 'statuses',
'categories' => 'categories',
'not_found' => "There is no ticket id with value: :id"
'not_found' => "There is no ticket id with value: :id",
],
'resource' => [
'resources' => 'resources',

View File

@ -14,7 +14,7 @@
<div class="row">
<div class="col-sm-6">
<h3>Accounts</h3>
<h3>@lang('app.account.list_title')</h3>
<div class="row">
<div class="col-sm-12 col-md-4">
<div class="card">
@ -25,7 +25,7 @@
<path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" />
</svg>
</div>
<div class="text-value">{{ App\Models\Account::count() }}</div><small class="text-muted text-uppercase font-weight-bold">Accounts</small>
<div class="text-value">{{ App\Models\Account::count() }}</div><small class="text-muted text-uppercase font-weight-bold">@lang('app.account.list_title')</small>
<div class="progress progress-xs mt-3 mb-0">
<div class="progress-bar bg-info" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
@ -43,7 +43,7 @@
<path stroke-linecap="round" stroke-linejoin="round" d="M20.25 14.15v4.25c0 1.094-.787 2.036-1.872 2.18-2.087.277-4.216.42-6.378.42s-4.291-.143-6.378-.42c-1.085-.144-1.872-1.086-1.872-2.18v-4.25m16.5 0a2.18 2.18 0 00.75-1.661V8.706c0-1.081-.768-2.015-1.837-2.175a48.114 48.114 0 00-3.413-.387m4.5 8.006c-.194.165-.42.295-.673.38A23.978 23.978 0 0112 15.75c-2.648 0-5.195-.429-7.577-1.22a2.016 2.016 0 01-.673-.38m0 0A2.18 2.18 0 013 12.489V8.706c0-1.081.768-2.015 1.837-2.175a48.111 48.111 0 013.413-.387m7.5 0V5.25A2.25 2.25 0 0013.5 3h-3a2.25 2.25 0 00-2.25 2.25v.894m7.5 0a48.667 48.667 0 00-7.5 0M12 12.75h.008v.008H12v-.008z" />
</svg>
</div>
<div class="text-value">{{ App\Models\Account::where('type', 'business')->count() }}</div><small class="text-muted text-uppercase font-weight-bold">Entrepreneurs</small>
<div class="text-value">{{ App\Models\Account::where('type', 'business')->count() }}</div><small class="text-muted text-uppercase font-weight-bold">@lang('app.business.list_title')</small>
<div class="progress progress-xs mt-3 mb-0">
<div class="progress-bar bg-success" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
@ -61,7 +61,7 @@
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 3h12m-.75 4.5H21m-3.75 3.75h.008v.008h-.008v-.008zm0 3h.008v.008h-.008v-.008zm0 3h.008v.008h-.008v-.008z" />
</svg>
</div>
<div class="text-value">{{ App\Models\Account::where('type', 'company')->count() }}</div><small class="text-muted text-uppercase font-weight-bold">Companies</small>
<div class="text-value">{{ App\Models\Account::where('type', 'company')->count() }}</div><small class="text-muted text-uppercase font-weight-bold">@lang('app.company.list_title')</small>
<div class="progress progress-xs mt-3 mb-0">
<div class="progress-bar bg-warning" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
@ -73,7 +73,7 @@
</div>
<div class="col-sm-6">
<h3>Tickets</h3>
<h3>@lang('app.ticket.list_title')</h3>
<div class="row">
<div class="col-sm-12 col-md-4">
<div class="card">
@ -84,7 +84,7 @@
<path stroke-linecap="round" stroke-linejoin="round" d="M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 010 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 010-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375z" />
</svg>
</div>
<div class="text-value">{{ App\Models\Ticket::count() }}</div><small class="text-muted text-uppercase font-weight-bold">Total tickets</small>
<div class="text-value">{{ App\Models\Ticket::count() }}</div><small class="text-muted text-uppercase font-weight-bold">@lang('app.dashboard.total_tickets')</small>
<div class="progress progress-xs mt-3 mb-0">
<div class="progress-bar" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
@ -102,7 +102,7 @@
<path stroke-linecap="round" stroke-linejoin="round" d="M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0M3.124 7.5A8.969 8.969 0 015.292 3m13.416 0a8.969 8.969 0 012.168 4.5" />
</svg>
</div>
<div class="text-value">{{ App\Models\Ticket::open()->count() }}</div><small class="text-muted text-uppercase font-weight-bold">Open tickets</small>
<div class="text-value">{{ App\Models\Ticket::open()->count() }}</div><small class="text-muted text-uppercase font-weight-bold">@lang('app.dashboard.open_tickets')</small>
<div class="progress progress-xs mt-3 mb-0">
<div class="progress-bar bg-danger" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
@ -120,7 +120,7 @@
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.746 3.746 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z" />
</svg>
</div>
<div class="text-value">{{ App\Models\Ticket::closed()->count() }}</div><small class="text-muted text-uppercase font-weight-bold">Closed tickets</small>
<div class="text-value">{{ App\Models\Ticket::closed()->count() }}</div><small class="text-muted text-uppercase font-weight-bold">@lang('app.dashboard.closed_tickets')</small>
<div class="progress progress-xs mt-3 mb-0">
<div class="progress-bar bg-info" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
@ -133,16 +133,16 @@
</div>
<hr>
<h3 class="pt-3">Applications</h3>
<h3 class="pt-3">@lang('app.application.list_title')</h3>
<div class="row">
<div class="col-sm-6 col-lg-3">
<div class="card">
<a href="/admin/application?state=new" class="text-dark" style="text-decoration: none">
<div class="card-body">
<div class="text-value">{{ App\Models\Application::where('state', 'new')->count() }} <small>new</small></div>
<div class="text-value">{{ App\Models\Application::where('state', 'new')->count() }} <small>@lang('app.dashboard.new')</small></div>
<div class="progress progress-xs my-2">
<div class="progress-bar bg-success" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div><small class="text-muted">New applications</small>
</div><small class="text-muted">@lang('app.dashboard.new_applications')</small>
</div>
</a>
</div>
@ -152,10 +152,10 @@
<div class="card">
<a href="/admin/application?state=applied" class="text-dark" style="text-decoration: none">
<div class="card-body">
<div class="text-value">{{ App\Models\Application::where('state', 'applied')->count() }} <small>applied</small></div>
<div class="text-value">{{ App\Models\Application::where('state', 'applied')->count() }} <small>@lang('app.dashboard.applied')</small></div>
<div class="progress progress-xs my-2">
<div class="progress-bar bg-info" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div><small class="text-muted">Applied applications</small>
</div><small class="text-muted">@lang('app.dashboard.applied_applications')</small>
</div>
</a>
</div>
@ -165,10 +165,10 @@
<div class="card">
<a href="/admin/application?state=approved" class="text-dark" style="text-decoration: none">
<div class="card-body">
<div class="text-value">{{ App\Models\Application::where('state', 'approved')->count() }} <small>approved</small></div>
<div class="text-value">{{ App\Models\Application::where('state', 'approved')->count() }} <small>@lang('app.dashboard.approved')</small></div>
<div class="progress progress-xs my-2">
<div class="progress-bar bg-warning" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div><small class="text-muted">Approved applications</small>
</div><small class="text-muted">@lang('app.dashboard.approved_applications')</small>
</div>
</a>
</div>
@ -178,10 +178,10 @@
<div class="card">
<a href="/admin/application?state=archived" class="text-dark" style="text-decoration: none">
<div class="card-body">
<div class="text-value">{{ App\Models\Application::where('state', 'archived')->count() }} <small>archived</small></div>
<div class="text-value">{{ App\Models\Application::where('state', 'refine')->count() }} <small>@lang('app.dashboard.refined')</small></div>
<div class="progress progress-xs my-2">
<div class="progress-bar bg-danger" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div><small class="text-muted">Archived applications</small>
</div><small class="text-muted">@lang('app.dashboard.refined_applications')</small>
</div>
</a>
</div>

View File

@ -2,7 +2,7 @@
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('dashboard') }}"><i class="la la-home nav-icon"></i> {{ trans('backpack::base.dashboard') }}</a></li>
<li class="nav-item nav-dropdown">
<a class="nav-link nav-dropdown-toggle" href="#"><i class="nav-icon la la-users"></i> Clients</a>
<a class="nav-link nav-dropdown-toggle" href="#"><i class="nav-icon la la-users"></i> @lang('app.client.list_title')</a>
<ul class="nav-dropdown-items">
<li class='nav-item'><a class='nav-link' href='{{ backpack_url('client') }}'><i class='nav-icon la la-question'></i> @lang('app.client.list_title')</a></li>
<li class='nav-item'><a class='nav-link' href='{{ backpack_url('company') }}'><i class='nav-icon la la-question'></i> @lang('app.company.list_title')</a></li>