Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/keuangan-organisasi.aplikasipos.info/resources/views/dues/
Upload File :
Current File : /home/aplikasiposinfo/www/keuangan-organisasi.aplikasipos.info/resources/views/dues/table.blade.php

<table class="table" border="1">
    <thead>
        <tr>
            <th>#</th>
            <th>Member</th>
            <th>Jan</th>
            <th>Feb</th>
            <th>Mar</th>
            <th>Apr</th>
            <th>May</th>
            <th>June</th>
            <th>July</th>
            <th>Aug</th>
            <th>Sept</th>
            <th>Oct</th>
            <th>Nov</th>
            <th>Des</th>
            <th>Total</th>
        </tr>
    </thead>
    <tbody>
    <tbody>
        @php
            $no = 1;
        @endphp
        @if ($report)
            @foreach ($report as $item)
                {{-- {{ dd($item) }} --}}
                <tr>
                    <td class="text-center">{{ $no++ }}</td>
                    <td>{{ $item->member->name }}</td>
                    @for ($i = 1; $i <= 12; $i++)
                        <td>
                            @php
                                if ($item->member->id != null && $item->member->id != 0) {
                                    $transaction = App\Models\Transaction::where('member_id', $item->member->id)
                                        ->whereMonth('date', $i)
                                        ->first();
                                }
                            @endphp
                            @if ($transaction)
                                &#10003;
                            @else
                                -
                            @endif
                        </td>
                    @endfor
                    <td>{{ app('App\Http\Controllers\DuesController')->calculateTotalAmountByMember($item->member->id, $year) }}
                    </td>
                </tr>
            @endforeach
            <tr>
                <td>Total:</td>
                @for ($i = 1; $i <= 13; $i++)
                    <td></td>
                @endfor
                <td>{{ $sumAmount }}</td>
            </tr>
        @else
            <tr>
                <td colspan="15" class="text-center">No data available.</td>
            </tr>
        @endif
    </tbody>
</table>

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]