flexisip-account-manager/flexiapi/resources/views/admin/account/device/index.blade.php
2023-08-07 15:10:32 +00:00

56 lines
No EOL
1.5 KiB
PHP

@extends('layouts.main')
@section('breadcrumb')
<li class="breadcrumb-item">
<a href="{{ route('admin.account.index') }}">Accounts</a>
</li>
<li class="breadcrumb-item">
<a href="{{ route('admin.account.edit', $account) }}">{{ $account->identifier }}</a>
</li>
<li class="breadcrumb-item active" aria-current="page">Devices</li>
@endsection
@section('content')
<header>
<h1><i class="material-icons">people</i> {{ $account->identifier }}</h1>
<a href="{{ route('admin.account.edit', $account->id) }}" class="btn btn-secondary oppose">Cancel</a>
</header>
@include('parts.tabs', [
'items' => [
route('admin.account.edit', $account->id, ['type' => 'messages']) => 'Information',
route('admin.account.device.index', $account->id, ['type' => 'accounts']) => 'Devices',
],
])
<table class="table">
<thead>
<tr>
<th>User Agent</th>
<th></th>
</tr>
</thead>
<tbody>
@if ($devices->isEmpty())
<tr class="empty">
<td colspan="3">No Devices</td>
</tr>
@endif
@foreach ($devices as $device)
<tr>
<td>{{ $device->user_agent }}</td>
<td>
<a type="button"
class="btn btn-danger"
href="{{ route('admin.account.device.delete', [$account, $device->uuid]) }}">
Delete
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@endsection