<?php $__env->startSection('content'); ?>
<div class="panel panel-default">
    <div class="panel-heading">create Miscellaneous Charge</div>


    <div class="panel-body">
        <?php if($errors->any()): ?>
            <div class="alert alert-danger">
                <ul>
                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li><?php echo e($error); ?></li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            </div><br />
        <?php endif; ?>
           <form method="post" class="create_billing_form" action="<?php echo e(route('charges.store')); ?>" >
            <input type="hidden" value="<?php echo e(csrf_token()); ?>" name="_token" />
            <button type="submit" class="btn btn-primary">Save</button>
                <div class="form-group">
                    <label for="title">Customer:</label>
                    <select data-live-search="true" class="form-control" name="customer_id">
                        <option value="0">None</option>
                        <?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option data-tokens="<?php echo e($customer->xero_name); ?>" value="<?php echo e($customer->id); ?>"><?php echo e($customer->xero_name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>

                <div class="form-group">
                    <label for="title">description :</label><br>
                    <input type="text" class="form-control" name="description" value=""/>
                </div>

                <div class="form-group">
                    <label for="title">fee :</label>
                    <input type="text" class="form-control" name="price" value=""/>
                </div>


                 
                <div class="form-group">
                    <label for="title">date invoice :</label>
                    <select class="form-control" name="date_invoice">
                        <option value="next_day">Next day</option>
                        <option value="end_of_the_week">End of the week</option>
                        <option value="end_of_the_month" >End of the month</option>
                    </select>
                </div>
                 
               
                 <button type="submit" class="btn btn-primary">Save</button>
             </form>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/joraleqyan/PhpstormProjects/xero/resources/views/charges/create.blade.php ENDPATH**/ ?>