<div class="tabs-content-item">
    <div class="main-comsec-library">
        <table id="subscription-table" class="">
            <thead>
                <tr>
                    <td>Date</td>
                    <td>Service</td>
                    <td>Subscription Period</td>
                    <td>Package</td>
                    <td>Status</td>
                    <td>Invoice</td>
                </tr>
            </thead>
            <tbody>
                @foreach($company_subscription as $sub)
                    <tr>
                        <td>{{ $sub->created_at->format('Y-m-d') }}</td>
                        <td>{{ $sub->subscription->service_type }}</td>
                        <td>{{ explode(' ', $sub->expiration_at)[0] }}</td>
                        <td>{{ $sub->subscription->period }}</td>
                        <td><span class="success item-list-note">{{ $sub->status == 1 ? 'Active' : 'Deactivate' }}</span></td>
                        <td><a href=""><img class="max-25" src="{{ asset('themes/tailwind/images/download.svg') }}"></a></td>
                    </tr>
                @endforeach
            </tbody>
        </table>
    </div>
</div>