@extends('layouts.app')
@section('title','Print Vouchers — BlueBando v3')

@section('content')
  <h1 style="margin:0 0 12px">Bulk Vouchers (Print)</h1>

  <div class="card full">
    <p class="muted">Router: {{ $router->name }} — {{ $router->host }}</p>
    <table>
      <thead>
        <tr>
          <th>Voucher</th>
          <th>Password</th>
        </tr>
      </thead>
      <tbody>
        @foreach($created as $v)
          <tr>
            <td>{{ $v['username'] }}</td>
            <td>{{ $v['password'] }}</td>
          </tr>
        @endforeach
      </tbody>
    </table>
  </div>

  <div style="margin-top:12px">
    <button class="btn" onclick="window.print()">Print page</button>
  </div>
@endsection
