@extends('backpack::blank')

@section('header')
<section class="container-fluid">
    <h2>
        @lang('Cart Details')
    </h2>
</section>
@endsection


@section('content')


<div>

    <cart-component
        :enrollment="{{ json_encode($enrollment) }}"
        :productslist="{{ json_encode($products) }}"
        :clients="{{ json_encode($clients) }}"
        :invoicetypes="{{ json_encode($invoicetypes) }}"
        :availablebooks="{{ json_encode($availableBooks) }}"
        :availablefees="{{ json_encode($availableFees) }}"
        :availablediscounts="{{ json_encode($availableDiscounts) }}"
        :availabletaxes="{{ json_encode($availableTaxes) }}"
        :availablepaymentmethods="{{ json_encode($availablePaymentMethods) }}"
        :accountingenabled="{{ json_encode(config('invoicing.accounting_enabled')) }}"
        :allowemptypaymentmethods="{{ json_encode(config('invoicing.allow_empty_payment_methods')) }}"
        :allowedblankfields="{{ json_encode(config('invoicing.allowed_blank_fields')) }}"
        currency="{{ config('academico.currency_symbol') }}"
        currencyposition="{{ config('academico.currency_position') }}"
        :pricecategories="{{ json_encode($priceCategories ?? []) }}"
        :studentpricecategory="{{ json_encode($studentPriceCategory ?? 'price_a') }}"
        invoicing-mode="{{ config('invoicing.price_categories_enabled') ? 'priceCategories' : 'regular' }}"
        skip-data-step="{{ config('invoicing.skip_invoice_data_step') }}"
        manual-invoice-numbering="{{ config('invoicing.invoice_numbering') === 'manual' }}"
        invoices-contain-enrollments-only="{{ config('invoicing.invoices_contain_enrollments_only') }}"
    >
    </cart-component>

</div>

@endsection
