2022-11-19 05:58:55 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
2022-11-27 02:34:36 +00:00
|
|
|
@section('title', '模块: ' . $module->name)
|
2022-11-19 05:58:55 +00:00
|
|
|
|
|
|
|
@section('content')
|
2022-12-09 09:22:59 +00:00
|
|
|
<h3>{{ $module->name }}</h3>
|
2023-02-11 08:46:57 +00:00
|
|
|
<p>状态: <x-module-status :status="$module->status"/>, 余额: {{ $module->balance }} 元。</p>
|
2023-01-14 15:51:58 +00:00
|
|
|
|
|
|
|
<div class="mt-3">
|
|
|
|
<a href="{{ route('admin.modules.edit', $module) }}">编辑</a>
|
|
|
|
<a href="{{ route('admin.modules.allows', $module) }}">MQTT 授权</a>
|
2023-01-17 16:09:01 +00:00
|
|
|
<a href="{{ route('admin.transactions') }}?module_id={{ $module->id }}">交易记录</a>
|
2023-01-14 15:51:58 +00:00
|
|
|
<a href="{{ route('admin.modules.fast-login', $module) }}" target="_blank">快速登录</a>
|
|
|
|
<a href="{{ route('admin.notifications.create') }}?user=all&module_id={{ $module->id }}">给此模块的所有用户发送通知</a>
|
|
|
|
</div>
|
|
|
|
|
2022-11-20 03:56:48 +00:00
|
|
|
|
2022-12-09 09:22:59 +00:00
|
|
|
<h4 class="mt-2">收益</h4>
|
|
|
|
<div>
|
|
|
|
<x-module-earning :module="$module"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4 class="mt-2">主机</h4>
|
|
|
|
<div class="overflow-auto">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
2022-11-20 03:56:48 +00:00
|
|
|
<th>ID</th>
|
|
|
|
<th>名称</th>
|
|
|
|
<th>用户</th>
|
2022-11-21 04:50:26 +00:00
|
|
|
<th>月估算价格</th>
|
2022-11-24 00:47:04 +00:00
|
|
|
<th>状态</th>
|
2022-11-20 03:56:48 +00:00
|
|
|
<th>更新时间</th>
|
2022-11-24 00:47:04 +00:00
|
|
|
<th>创建时间</th>
|
2022-11-20 03:56:48 +00:00
|
|
|
<th>操作</th>
|
2022-12-09 09:22:59 +00:00
|
|
|
</thead>
|
2022-11-20 03:56:48 +00:00
|
|
|
|
2022-12-09 09:22:59 +00:00
|
|
|
<tbody>
|
2022-11-20 03:56:48 +00:00
|
|
|
@foreach ($hosts as $host)
|
2022-12-09 09:22:59 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{{ route('admin.hosts.edit', $host) }}">
|
|
|
|
{{ $host->id }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $host->name }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ route('admin.users.edit', $host->user_id) }}"> {{ $host->user->name }}</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $host->price }} 元
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<x-host-status :status="$host->status"/>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $host->updated_at }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $host->created_at }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ route('admin.hosts.edit', $host) }}" class="btn btn-primary btn-sm">编辑</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-11-20 03:56:48 +00:00
|
|
|
|
|
|
|
@endforeach
|
2022-12-09 09:22:59 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2022-11-20 03:56:48 +00:00
|
|
|
|
2022-12-09 09:22:59 +00:00
|
|
|
{{-- 分页 --}}
|
|
|
|
{{ $hosts->links() }}
|
2022-11-24 00:47:04 +00:00
|
|
|
@endsection
|