
<?php $__env->startSection('content'); ?>
<?php Fun::lang()?>
<?php echo Form::open(['route' => ['add-tailor-ar',$payment->id],'files'=>true,'class'=>'jform']); ?>

    <div class="form-group ">
        <label class="col-sm-4 col-form-label text-right "><?php echo e(__('administrator.invoice')); ?></label>
        <div class="col-sm-6">
            <input type="text" class="form-control" name="invoice" value="<?php echo e($payment->invoice); ?>" readonly>
        </div>
    </div>
    <?php if($payment->type==='production'): ?>
        <div class="form-group ">
            <label class="col-sm-4 col-form-label text-right "><?php echo e(__('administrator.tailor')); ?></label>
            <div class="col-sm-6">
                <input type="text" class="form-control" name="tailor_name" value="<?php echo e($payment->tailor->name); ?>" readonly>
            </div>
        </div>
        <?php if($payment->tailor->account_receivable_usd): ?>
        <div class="form-group ">
            <label class="col-sm-4 col-form-label text-right "><?php echo e(__('administrator.account_receivable')); ?> ($)</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" name="account_receivable_u" value="<?php echo e($payment->tailor->account_receivable_usd??0); ?>" readonly>
            </div>
        </div>
        <?php endif; ?>
        <?php if($payment->tailor->account_receivable_riel): ?>
            <div class="form-group ">
            <label class="col-sm-4 col-form-label text-right "><?php echo e(__('administrator.account_receivable')); ?> (៛)</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" name="account_receivable_r" value="<?php echo e($payment->tailor->account_receivable_riel??0); ?>" readonly>
            </div>
        </div>
        <?php endif; ?>
    <?php endif; ?>
    <div class="form-group ">
        <label class="col-sm-4 col-form-label text-right required"><?php echo e(__('administrator.currency')); ?></label>
        <div class="col-sm-6">
            <?php echo Form::select('currency_id',getCurrency(),null, ['class' => 'form-control select2','placeholder'=>__('administrator.please_select')]); ?>

        </div>
    </div>
    <div class="form-group ">
        <label class="col-sm-4 col-form-label text-right required"><?php echo e(__('administrator.amount')); ?></label>
        <div class="col-sm-6">
            <?php echo Form::text('amount',null, ['class' => 'form-control']); ?>

        </div>
    </div>
    <div class="form-group ">
        <label class="col-sm-4 col-form-label text-right required"><?php echo e(__('administrator.date')); ?></label>
        <div class="col-sm-6">
            <?php echo Form::date('date',date('Y-m-d'), ['class' => 'form-control']); ?>

        </div>
    </div>
    <div class="form-group ">
        <label class="col-sm-4 col-form-label text-right "><?php echo e(__('administrator.note')); ?></label>
        <div class="col-sm-6">
            <?php echo Form::textarea('note',null, ['class' => 'form-control no-resize','rows'=>'5','maxlength'=>'150']); ?>

        </div>
    </div>
<input type="submit" class="hidden">
<?php echo Form::close(); ?>

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


<?php echo $__env->make('layouts.jform', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/administrator/payment/production/add-ar-payment.blade.php ENDPATH**/ ?>