@extends('layouts.simple.master')

@section('title', 'WHMCS Clients')

@section('main_content')
<div class="container-fluid">
    <h3>Clients from WHMCS</h3>
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>ID</th>
                <th>Name</th>
                <th>Email</th>
                <th>Company</th>
            </tr>
        </thead>
        <tbody>
            @foreach ($clients as $client)
            <tr>
                <td>{{ $client['id'] }}</td>
                <td>{{ $client['firstname'] }} {{ $client['lastname'] }}</td>
                <td>{{ $client['email'] }}</td>
                <td>{{ $client['companyname'] ?? '-' }}</td>
            </tr>
            @endforeach
        </tbody>
    </table>
</div>
@endsection
