myvideogamelist.com/resources/views/partials/widgets/tables/_widget-1.blade.php

150 lines
5.5 KiB
PHP
Raw Permalink Normal View History

<?php
// Table rows
$tableRows = array(
array(
'image' => 'svg/brand-logos/plurk.svg',
'info' => array(
'title' => 'Top Authors',
'description' => 'Successful Fellas'
),
'progress' => array(
'value' => '70',
'color' => 'primary'
)
),
array(
'image' => 'svg/brand-logos/telegram.svg',
'info' => array(
'title' => 'Popular Authors',
'description' => 'Most Successful'
),
'progress' => array(
'value' => '50',
'color' => 'primary'
)
),
array(
'image' => 'svg/brand-logos/vimeo.svg',
'info' => array(
'title' => 'New Users',
'description' => 'Awesome Users'
),
'progress' => array(
'value' => '80',
'color' => 'primary'
)
),
array(
'image' => 'svg/brand-logos/bebo.svg',
'info' => array(
'title' => 'Active Customers',
'description' => 'Best Customers'
),
'progress' => array(
'value' => '90',
'color' => 'primary'
)
),
array(
'image' => 'svg/brand-logos/kickstarter.svg',
'info' => array(
'title' => 'Bestseller Theme',
'description' => 'Amazing Templates'
),
'progress' => array(
'value' => '70',
'color' => 'primary'
)
)
);
?>
<!--begin::Tables Widget 1-->
<div class="card {{ $class }}">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">Tasks Overview</span>
<span class="text-muted fw-bold fs-7">Pending 10 tasks</span>
</h3>
<div class="card-toolbar">
<!--begin::Menu-->
<button type="button" class="btn btn-sm btn-icon btn-color-primary btn-active-light-primary" data-kt-menu-trigger="click" data-kt-menu-placement="bottom-end">
{!! theme()->getSvgIcon("icons/duotune/general/gen024.svg", "svg-icon-2") !!}
</button>
{{ theme()->getView('partials/menus/_menu-1') }}
<!--end::Menu-->
</div>
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body py-3">
<!--begin::Table container-->
<div class="table-responsive">
<!--begin::Table-->
<table class="table align-middle gs-0 gy-5">
<!--begin::Table head-->
<thead>
<tr>
<th class="p-0 w-50px"></th>
<th class="p-0 min-w-200px"></th>
<th class="p-0 min-w-100px"></th>
<th class="p-0 min-w-40px"></th>
</tr>
</thead>
<!--end::Table head-->
<!--begin::Table body-->
<tbody>
@foreach($tableRows as $row)
<tr>
<th>
<div class="symbol symbol-50px me-2">
<span class="symbol-label">
<img src="{{ asset(theme()->getMediaUrlPath() . $row['image']) }}" class="h-50 align-self-center" alt=""/>
</span>
</div>
</th>
<td >
<a href="#" class="text-dark fw-bolder text-hover-primary mb-1 fs-6">{{ $row['info']['title'] }}</a>
<span class="text-muted fw-bold d-block fs-7">{{ $row['info']['description'] }}</span>
</td>
<td>
<div class="d-flex flex-column w-100 me-2">
<div class="d-flex flex-stack mb-2">
<span class="text-muted me-2 fs-7 fw-bold">
{{ $row['progress']['value'] }}%
</span>
</div>
<div class="progress h-6px w-100">
<div class="progress-bar bg-{{ $row['progress']['color'] }}" role="progressbar" style="width: {{ $row['progress']['value'] }}%" aria-valuenow="{{ $row['progress']['value'] }}" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</td>
<td class="text-end">
<a href="#" class="btn btn-sm btn-icon btn-bg-light btn-active-color-primary">
{!! theme()->getSvgIcon("icons/duotune/arrows/arr064.svg", "svg-icon-2"); !!}
</a>
</td>
</tr>
@endforeach
</tbody>
<!--end::Table body-->
</table>
<!--end::Table-->
</div>
<!--end::Table container-->
</div>
</div>
<!--endW::Tables Widget 1-->