<div class="row">
    <div class="col-3">
        <h6>Currency: Pak. Rs.</h6>
    </div>
    <div class="col-6 text-center">
        <h4>TRIAL BALANCE - LEVEL {{ $level }}</h4>
        <p>FOR THE PERIOD STARTING FROM <strong>{{ $startDate->toDateString() }}</strong> UPTO <strong>{{ $endDate->toDateString() }}</strong></p>
    </div>
    <div class="col-3 text-end">
        <h6>Issue No 01</h6>
    </div>
</div>

<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
            <tr>
                <th scope="col">CODE</th>
                <th scope="col">DESCRIPTION</th>
                <th scope="col">OPENING DEBIT</th>
                <th scope="col">OPENING CREDIT</th>
                <th scope="col">ACTIVITY DEBIT</th>
                <th scope="col">ACTIVITY CREDIT</th>
                <th scope="col">CLOSING DEBIT</th>
                <th scope="col">CLOSING CREDIT</th>
            </tr>
        </thead>
        <tbody>
            @foreach ($trialData as $row)
                <tr class="" data-coa_id="{{ $row['coa_id'] ?? '-' }}">
                    <td>{{ $row['coa_code'] ?? '-' }}</td>
                    <td>{{ $row['coa_desc'] ?? '-' }}</td>
                    <td>{{ $row['opening_debit'] && $row['opening_debit'] > 0 ? $row['opening_debit'] : '' }}</td>
                    <td>{{ $row['opening_credit'] && $row['opening_credit'] > 0 ? $row['opening_credit'] : '' }}</td>
                    <td>{{ $row['activity_debit'] && $row['activity_debit'] > 0 ? $row['activity_debit'] : '' }}</td>
                    <td>{{ $row['activity_credit'] && $row['activity_credit'] > 0 ? $row['activity_credit'] : '' }}</td>
                    <td>{{ $row['closing_debit'] && $row['closing_debit'] > 0 ? $row['closing_debit'] : '' }}</td>
                    <td>{{ $row['closing_credit'] && $row['closing_credit'] > 0 ? $row['closing_credit'] : '' }}</td>
                </tr>
            @endforeach
        </tbody>
    </table>
</div>
