<?php $__env->startSection('title'); ?>
    <?php echo e(__('messages.invoice_templates')); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('page_css'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/invoice-template.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('section'); ?>
    <div class="card">
        <div class="card-body pt-0 fs-6 py-8 px-0 px-lg-10 text-gray-700">
            <div class="row g-5 g-xl-8">
                <!--begin::Col-->
                <div class="col-xl-4">
                    <div class="card card-xxl-stretch mb-xl-8">
                        <div class="card-body d-flex flex-column">
                            <div class="mt-5">
                                <div class="d-flex flex-stack mb-5">
                                    <div class="d-flex align-items-center me-2">
                                        <?php echo e(Form::open(['route' => 'invoiceTemplate.update', 'method' => 'post', 'id' => 'invoiceSetting', 'class' => 'invoice-settings'])); ?>

                                        <div class="row">
                                            <div class="col-lg-12 mb-5">
                                                <?php echo e(Form::label('invoice_template', __('messages.setting.invoice_template') . ':', ['class' => 'form-label fs-6 mb-3'])); ?>

                                                <br>
                                                <select class="form-select " name="template" id="invoiceTemplateId"
                                                    data-control="select2">
                                                    <?php $__currentLoopData = $invoiceTemplate; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $template): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <option value="<?php echo e($template['key']); ?>"
                                                            data-color="<?php echo e($template['template_color']); ?>"
                                                            <?php echo e($template['key'] == $defaultTemplate->value ? 'selected' : ''); ?>>
                                                            <?php echo e($template['template_name']); ?>

                                                        </option>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </select>
                                            </div>
                                            <div class="col-lg-12 mb-5">
                                                <?php echo e(Form::label('invoice_color', __('messages.setting.color') . ':', ['class' => 'form-label fs-6 mb-3'])); ?>

                                                <div class="color-wrapper"></div>
                                                <?php echo e(Form::text('default_invoice_color', $invoiceTemplate[0]['template_color'] ?? null, ['id' => 'invoiceColor', 'hidden', 'class' => 'form-control'])); ?>

                                            </div>
                                            <?php echo e(Form::button(__('messages.common.save'), ['type' => 'submit', 'id' => 'btnSave', 'class' => 'btn btn-primary save-btn-invoice col-6 ms-3', 'data-loading-text' => "<span class='spinner-border spinner-border-sm'></span> Processing..."])); ?>

                                        </div>
                                        <?php echo e(Form::close()); ?>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xl-8">
                    <!--begin::Tables Widget 5-->
                    <div class="card card-xxl-stretch mb-5 mb-xl-8">
                        <!--begin::Header-->
                        <div class="card-header border-0 pt-5">
                            <h3 class="card-title align-items-start flex-column">
                                <span
                                    class="card-label fw-bolder fs-3 mb-1"><?php echo e(__('messages.setting.invoice_template')); ?></span>
                            </h3>
                        </div>
                        <!--end::Header-->
                        <!--begin::Body-->
                        <div class="card-body py-3 px-md-3 px-0 bg-white">
                            <div class="tab-content">
                                <!--begin::Tap pane-->
                                <div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
                                    <div class="container px-sm-3 px-0">
                                        <div id="app" class="content pt-0 bg-white">
                                            <div class="editor">
                                                <div class="invoice-preview-inner w-auto">
                                                    <div class="editor-content" id="editorContent">

                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--end::Body-->
                    </div>
                    <!--end::Tables Widget 5-->
                </div>
                <!--end::Col-->
            </div>
        </div>
    </div>
    <?php echo e(Form::hidden('company_address', 'Rajkot', ['id' => 'companyAddress'])); ?>

    <?php echo e(Form::hidden('company_phone_number', '+7405868976', ['id' => 'companyPhoneNumber'])); ?>

    <?php echo e(Form::hidden('company_name', 'infyom', ['id' => 'companyName'])); ?>

    <?php echo e(Form::hidden('gst_no', '22AAAAA0000A1Z5', ['id' => 'gstNo'])); ?>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('settings.edit', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/elitdevs/accounting-1.elitdevs.com/resources/views/settings/setting-invoice.blade.php ENDPATH**/ ?>