birzha-legalizasia/resources/views/vendor/backpack/base/dashboard.blade.php

193 lines
14 KiB
PHP

@extends(backpack_view('blank'))
@section('content')
<style>
*{
transition: 0.2s
}
.card:hover{
transform: scale3d(1.03, 1.03, 1.03)
}
</style>
<div class="row">
<div class="col-sm-6">
<h3>@lang('app.account.list_title')</h3>
<div class="row">
<div class="col-sm-12 col-md-4">
<div class="card">
<a class="text-dark" href="{{backpack_url('account')}}" style="text-decoration: none">
<div class="card-body">
<div class="h1 text-muted text-right mb-4">
<svg style="width: 50px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<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">@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>
</div>
</a>
</div>
</div>
<div class="col-sm-12 col-md-4">
<div class="card">
<a class="text-dark" href="{{backpack_url('account')}}?type=business" style="text-decoration: none">
<div class="card-body">
<div class="h1 text-muted text-right mb-4">
<svg style="width: 50px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<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">@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>
</div>
</a>
</div>
</div>
<div class="col-sm-12 col-md-4">
<div class="card">
<a class="text-dark" href="{{backpack_url('account')}}?type=company" style="text-decoration: none">
<div class="card-body">
<div class="h1 text-muted text-right mb-4">
<svg style="width: 50px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<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">@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>
</div>
</a>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<h3>@lang('app.ticket.list_title')</h3>
<div class="row">
<div class="col-sm-12 col-md-4">
<div class="card">
<a class="text-dark" href="{{backpack_url('ticket')}}" style="text-decoration: none">
<div class="card-body">
<div class="h1 text-muted text-right mb-4">
<svg style="width: 50px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<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">@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>
</div>
</a>
</div>
</div>
<div class="col-sm-12 col-md-4">
<div class="card">
<a href="{{backpack_url('ticket')}}?status=1" class="text-dark" style="text-decoration: none">
<div class="card-body">
<div class="h1 text-muted text-right mb-4">
<svg style="width: 50px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<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">@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>
</div>
</a>
</div>
</div>
<div class="col-sm-12 col-md-4">
<div class="card">
<a href="{{backpack_url('ticket')}}?status=2" class="text-dark" style="text-decoration: none">
<div class="card-body">
<div class="h1 text-muted text-right mb-4">
<svg style="width: 50px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<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">@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>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<hr>
<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="{{backpack_url('application')}}?state=new" class="text-dark" style="text-decoration: none">
<div class="card-body">
<div class="text-value">{{ App\Models\Application::where('accepted_by', null)->orWhere('accepted_by', '')->where('state', 'applied')->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">@lang('app.dashboard.new_applications')</small>
</div>
</a>
</div>
</div>
<!-- /.col-->
<div class="col-sm-6 col-lg-3">
<div class="card">
<a href="{{backpack_url('application')}}?state=accepted" class="text-dark" style="text-decoration: none">
<div class="card-body">
<div class="text-value">{{ App\Models\Application::where('state', 'accepted')->count() }} <small>@lang('app.last_updates.accepted')</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">@lang('app.last_updates.accepted_applications')</small>
</div>
</a>
</div>
</div>
<!-- /.col-->
<div class="col-sm-6 col-lg-3">
<div class="card">
<a href="{{backpack_url('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>@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">@lang('app.dashboard.approved_applications')</small>
</div>
</a>
</div>
</div>
<!-- /.col-->
<div class="col-sm-6 col-lg-3">
<div class="card">
<a href="{{backpack_url('application')}}?state=archived" class="text-dark" style="text-decoration: none">
<div class="card-body">
<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">@lang('app.dashboard.refined_applications')</small>
</div>
</a>
</div>
</div>
<!-- /.col-->
</div>
@endsection