<div class="table-responsive">
    <table class="table table-striped">
        <thead>
        <tr>
            <th>&nbsp;</th>
            <th class="text-right">{{__('EK-Preis')}}</th>
            <th class="text-right">{{__('Points')}}</th>
            <th class="text-right">{{__('Verdienst')}}</th>
            <th class="text-right">{{__('VK-Preis')}}</th>
        </tr>
        </thead>
        <tbody>
        @if($homeparty->homeparty_host)
            @php($user_cart = \App\Services\HomepartyCart::getUserCart($homeparty->homeparty_host->id))
            <tr>
            <td>
                <strong>Gastgeber/in {{$homeparty->homeparty_host->billing_firstname}} {{$homeparty->homeparty_host->billing_lastname}}</strong>
            </td>
            <td class="text-right">
                {{$user_cart->getFormattedEkPrice()}} &euro;
            </td>
            <td class="text-right">
                {{$user_cart->getFormattedPoints()}}
            </td>
            <td class="text-right">
                {{$user_cart->getFormattedIncomePrice()}} &euro;
            </td>
            <td class="text-right">
                {{$user_cart->getFormattedPrice()}} &euro;
            </td>
        </tr>
        @endif

        @if($homeparty->homeparty_guests)
            @php($g_count = 1)
            @foreach($homeparty->homeparty_guests as $homeparty_guest)
                @php($user_cart = \App\Services\HomepartyCart::getUserCart($homeparty_guest->id))

                <tr>
                    <td>
                        <strong> {!! $g_count++ !!}. Gast {{$homeparty_guest->billing_firstname}} {{$homeparty_guest->billing_lastname}}</strong>
                    </td>
                    <td class="text-right">
                        {{$user_cart->getFormattedEkPrice()}} &euro;
                    </td>
                    <td class="text-right">
                        {{$user_cart->getFormattedPoints()}}
                    </td>
                    <td class="text-right">
                        {{$user_cart->getFormattedIncomePrice()}} &euro;
                    </td>
                    <td class="text-right">
                        {{$user_cart->getFormattedPrice()}} &euro;
                    </td>
                </tr>
            @endforeach
        @endif


        </tbody>
        <tfoot>
        @if(\App\Services\HomepartyCart::$is_bonus)
            <tr class="foot-small">
                <td colspan="4" class="border-top">
                    {{ \App\Services\HomepartyCart::$voucher_name }}
                </td>
                <td class="border-top text-right">{{ App\Services\HomepartyCart::getFormattedBonusPrice() }}&euro;</td>
            </tr>

        @endif
        <tr class="foot-small">
            <td colspan="1" class="border-top">
                <strong>Gesamtsummen:</strong>
            </td>
            <td class="border-top text-right"><strong>{{\App\Services\HomepartyCart::getFormattedEkPrice()}} &euro;</strong></td>
            <td class="border-top text-right"><strong>{{\App\Services\HomepartyCart::getFormattedPoints()}}</strong></td>
            <td class="border-top text-right"><strong>{{\App\Services\HomepartyCart::getFormattedIncomePrice()}} &euro;</strong></td>
            <td class="border-top text-right"><strong>{{\App\Services\HomepartyCart::getFormattedPrice()}} &euro;</strong></td>
        </tr>
        <tr class="foot-small">
            <td colspan="1" class="text-muted">
                Summe ohne MwSt:
            </td>
            <td class="">&nbsp;</td>

            <td class="">&nbsp;</td>
            <td class="">&nbsp;</td>
            <td class="text-muted text-right">{{\App\Services\HomepartyCart::getFormattedPriceNet()}} &euro;</td>
        </tr>
        <tr class="foot-small">
            <td colspan="1" class="text-muted">
                Enthaltene MwSt:
            </td>
            <td class="">&nbsp;</td>

            <td class="">&nbsp;</td>
            <td class="">&nbsp;</td>
            <td class="text-muted text-right">{{\App\Services\HomepartyCart::getFormattedPriceTax()}} &euro;</td>
        </tr>
        </tfoot>
    </table>
</div>