2022-11-18 10:50:28 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title', '模块')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2022-11-19 05:58:55 +00:00
|
|
|
<h3>模块</h3>
|
|
|
|
<a href="{{ route('admin.modules.create') }}">新建模块</a>
|
2022-11-18 10:50:28 +00:00
|
|
|
<div class="overflow-auto">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>名称</th>
|
2023-01-20 07:14:32 +00:00
|
|
|
<th>状态</th>
|
2023-01-17 16:07:37 +00:00
|
|
|
<th>余额</th>
|
2022-11-18 10:50:28 +00:00
|
|
|
<th>操作</th>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach ($modules as $module)
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{{ route('admin.modules.show', $module) }}">
|
|
|
|
{{ $module->id }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $module->name }}
|
|
|
|
</td>
|
2023-01-20 07:14:32 +00:00
|
|
|
<td>
|
2023-02-11 08:47:05 +00:00
|
|
|
<x-module-status :status="$module->status"/>
|
2023-01-20 07:14:32 +00:00
|
|
|
</td>
|
2023-01-17 16:07:37 +00:00
|
|
|
<td>
|
|
|
|
{{ $module->balance }} 元
|
|
|
|
</td>
|
2022-11-18 10:50:28 +00:00
|
|
|
<td>
|
2022-11-19 05:58:55 +00:00
|
|
|
<a href="{{ route('admin.modules.show', $module) }}" class="btn btn-primary btn-sm">查看</a>
|
2022-11-18 10:50:28 +00:00
|
|
|
<a href="{{ route('admin.modules.edit', $module) }}" class="btn btn-primary btn-sm">编辑</a>
|
2023-01-17 16:07:37 +00:00
|
|
|
<a href="{{ route('admin.modules.allows', $module) }}" class="btn btn-primary btn-sm">MQTT
|
|
|
|
授权</a>
|
|
|
|
<a href="{{ route('admin.modules.fast-login', $module) }}" target="_blank"
|
|
|
|
class="btn btn-primary btn-sm">快速登录</a>
|
2022-12-09 09:22:59 +00:00
|
|
|
|
2022-11-18 10:50:28 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{-- 分页 --}}
|
|
|
|
{{ $modules->links() }}
|
|
|
|
|
|
|
|
@endsection
|