Commit e04e7a3b by 孙龙
parents 0b709d4e 74275513
...@@ -18,20 +18,20 @@ class HomeController extends Controller ...@@ -18,20 +18,20 @@ class HomeController extends Controller
->header('Dashboard') ->header('Dashboard')
->description('Description...') ->description('Description...')
->body(function (Row $row) { ->body(function (Row $row) {
$row->column(6, function (Column $column) { $row->column(12, function (Column $column) {
$column->row(Dashboard::title()); $column->row(view('dashboard.title'));
$column->row(new Examples\Tickets()); // $column->row(new Examples\Tickets());
}); });
$row->column(6, function (Column $column) { // $row->column(6, function (Column $column) {
$column->row(function (Row $row) { // $column->row(function (Row $row) {
$row->column(6, new Examples\NewUsers()); // $row->column(6, new Examples\NewUsers());
$row->column(6, new Examples\NewDevices()); // $row->column(6, new Examples\NewDevices());
}); // });
//
$column->row(new Examples\Sessions()); // $column->row(new Examples\Sessions());
$column->row(new Examples\ProductOrders()); // $column->row(new Examples\ProductOrders());
}); // });
}); });
} }
} }
<style>
.table tr:first-child td {
border-top: 0;
}
</style>
<div class="table-responsive">
<table class="table">
@foreach($dependencies as $dependency => $version)
<tr>
<td width="240px" class="bold text-80">{{ $dependency }}</td>
<td><span class="label bg-primary">{{ $version }}</span></td>
</tr>
@endforeach
</table>
</div>
\ No newline at end of file
<div class="table-responsive">
<table class="table">
@foreach($envs as $env)
<tr>
<td width="120px" class="bold text-80">{{ $env['name'] }}</td>
<td>{{ $env['value'] }}</td>
</tr>
@endforeach
</table>
</div>
\ No newline at end of file
<style>
.ext-icon {
color: rgba(0,0,0,0.5);
margin-left: 10px;
}
.installed {
color: #00a65a;
margin-right: 15px;
font-size:20px;
}
</style>
<ul class="products-list product-list-in-box" id="extension-box" style="margin-top:10px;min-height: 100px">
@foreach($extensions as $extension)
<li class="item hidden">
<div class="product-img">
<i class="{{$extension['icon']}} fa-2x ext-icon"></i>
</div>
<div class="product-info" data-key="{{$extension['key']}}">
<a href="{{ $extension['link'] }}" target="_blank" class="">
{{ $extension['name'] }}
</a>
@if($extension['installed'])
<span class="pull-right installed"><i class="ti-check"></i></span>
@endif
</div>
</li>
@endforeach
</ul>
<div class="box-footer text-center">
<a href="https://github.com/jqhph/dcat-admin#%E6%89%A9%E5%B1%95" target="_blank" class="uppercase">View All Extensions</a>
</div>
<script>Dcat.ready(function () {
// var $box = $('#extension-box');
// $box.loading();
//
// $.ajax({
// url: 'https://jqhph.github.io/dcat-admin/extra/extensions.html',
// success: function (response) {
// $box.loading(false);
//
// $box.html(response);
// },
// error: function () {
// $box.loading(false);
//
// $box.find('.item').removeClass('hidden');
// }
// });
})</script>
\ No newline at end of file
<style>
.dashboard-title .links {
text-align: center;
margin-bottom: 2.5rem;
}
.dashboard-title .links > a {
padding: 0 25px;
font-size: 12px;
font-weight: 600;
letter-spacing: .1rem;
text-decoration: none;
text-transform: uppercase;
color: #fff;
}
.dashboard-title h1 {
font-weight: 200;
font-size: 2.5rem;
}
.dashboard-title .avatar {
background: #fff;
border: 2px solid #fff;
width: 70px;
height: 70px;
}
</style>
<div class="dashboard-title card bg-primary">
<div class="card-body" style="min-height: 100%">
<div class="text-center ">
<img class="avatar img-circle shadow mt-1" style="width: 500px" src="{{ admin_asset('@admin/images/logo.png') }}">
<div class="text-center mb-1">
<h1 class="mb-3 mt-2 text-white">Semour Admin</h1>
<div class="links">
{{-- <a href="https://github.com/jqhph/dcat-admin" target="_blank">Github</a>--}}
{{-- <a href="http://www.dcatadmin.com/" id="doc-link" target="_blank">{{ __('admin.documentation') }}</a>--}}
{{-- <a href="http://www.dcatadmin.com/" id="demo-link" target="_blank">{{ __('admin.extensions') }}</a>--}}
{{-- <a href="https://jqhph.github.io/dcat-admin/demo.html" id="demo-link" target="_blank">{{ __('admin.demo') }}</a>--}}
</div>
</div>
</div>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment