@extends('layouts.freelancer')
@section('title','My Routers — BlueBando v3')

@section('content')
  <div style="margin-bottom:12px">
    <h1 style="margin:0 0 4px">My Routers</h1>
    <div class="muted">Routers where you are allowed to sell vouchers.</div>
  </div>

  <div class="card full">
    <table>
      <thead>
      <tr>
        <th>Name</th>
        <th>Site</th>
        <th>Host</th>
      </tr>
      </thead>
      <tbody>
      @forelse($routers as $r)
        <tr>
          <td>{{ $r->name }}</td>
          <td>{{ $r->site }}</td>
          <td>{{ $r->host }}:{{ $r->api_port }}</td>
        </tr>
      @empty
        <tr><td colspan="3" class="muted">No routers assigned yet.</td></tr>
      @endforelse
      </tbody>
    </table>
  </div>
@endsection
