 <?php $__env->startSection('page_title',$supplier->exists?'Edit Supplier':'New Supplier'); ?> <?php $__env->startSection('content'); ?><form method="POST" action="<?php echo e($supplier->exists ? route('suppliers.update',$supplier) : route('suppliers.store')); ?>"><?php echo csrf_field(); ?> <?php if($supplier->exists): ?> <?php echo method_field('PUT'); ?> <?php endif; ?> <div class="card top-card"><div class="card-body"><div class="row g-3"><div class="col-md-6"><label>Name</label><input name="name" value="<?php echo e(old('name',$supplier->name)); ?>" class="form-control" required></div><div class="col-md-6"><label>Company</label><input name="company_name" value="<?php echo e(old('company_name',$supplier->company_name)); ?>" class="form-control"></div><div class="col-md-6"><label>Phone</label><input name="phone" value="<?php echo e(old('phone',$supplier->phone)); ?>" class="form-control"></div><div class="col-md-6"><label>Currency</label><select name="currency_id" class="form-select"><option value="">None</option><?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($c->id); ?>" <?php if(old('currency_id',$supplier->currency_id)==$c->id): echo 'selected'; endif; ?>><?php echo e($c->code); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div><div class="col-md-6"><label>Opening Balance</label><input type="number" step="0.01" name="opening_balance" value="<?php echo e(old('opening_balance',$supplier->opening_balance)); ?>" class="form-control"></div><div class="col-12"><label>Address</label><textarea name="address" class="form-control"><?php echo e(old('address',$supplier->address)); ?></textarea></div><div class="col-12 text-end"><button class="btn btn-success">Save</button></div></div></div></div></form><?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\petrolmump\resources\views/suppliers/form.blade.php ENDPATH**/ ?>