<div class="container-fluid px-0">
  <div class="row text-center mb-3">
    <div class="col">
      <?php if($target == 'store'): ?>
      <h1 class="h2"><?php echo app('translator')->get('db.partners'); ?> <?php echo app('translator')->get('system.title.create'); ?></h1>
      <?php elseif($target == 'update'): ?>
      <h1 class="h2"><?php echo app('translator')->get('db.partners'); ?> <?php echo app('translator')->get('system.title.edit'); ?></h1>
      <?php endif; ?>
    </div>
  </div>
  <?php if($target == 'store'): ?>
  <form action="/partner" method="post" onsubmit="return submitForm()">
  <?php elseif($target == 'update'): ?>
  <form action="/partner/<?php echo e($partner->id); ?>" name="" method="post" onsubmit="return submitForm()">
    <input type="hidden" name="_method" value="PUT">
  <?php endif; ?>
    <?php echo csrf_field(); ?>
    <div class="row justify-content-center">
      <div class="col-12 col-md-8 col-lg-6">
        <?php echo $__env->make('common/error-message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="card border-secondary mb-3 w-100">
          <div class="card-header mb-2"><?php echo app('translator')->get('db.partners'); ?> <?php echo app('translator')->get('system.title.information'); ?></div>
          <div class="card-body">
            <div class="form-group mb-4">
              <label class="form-label mb-2"><?php echo app('translator')->get('db.partner.name'); ?></label>
              <input type="text" class="form-control <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="name" placeholder="" value="<?php echo e(old('name', $partner->name)); ?>">
              <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>
            <div class="form-group mb-4">
              <label class="form-label mb-2"><?php echo app('translator')->get('db.partner.company_name'); ?></label>
              <input type="text" class="form-control <?php $__errorArgs = ['company_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="company_name" placeholder="" value="<?php echo e(old('company_name', $partner->company_name)); ?>">
              <?php $__errorArgs = ['company_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>
            <div class="form-group mb-4">
              <label class="form-label mb-2"><?php echo app('translator')->get('db.partner.quantity'); ?></label>
              <div class="input-group <?php $__errorArgs = ['quantity'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                <input type="number" class="form-control <?php $__errorArgs = ['quantity'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="quantity" value="<?php echo e(old('quantity', $partner->quantity)); ?>">
                <span class="input-group-text"><?php echo app('translator')->get('system.unit.dai'); ?></span>
              </div>
              <?php $__errorArgs = ['quantity'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>
            <div class="form-group mb-4">
              <label class="form-label mb-2"><?php echo app('translator')->get('db.partner.note'); ?></label>
              <textarea class="form-control <?php $__errorArgs = ['note'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="exampleTextarea" rows="3" name="note"><?php echo e(old('note', $partner->note)); ?></textarea>
              <?php $__errorArgs = ['note'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="row justify-content-center mb-4">
      <div class="col-12 col-md-5 col-lg-4 mt-2 mb-2">
        <button type="submit" id="submit-button" class="btn btn-primary w-100"><span class="bi bi-check-circle me-2"></span><?php echo app('translator')->get('system.command.register'); ?></button>
      </div>
      <div class="col-12 col-md-3 col-lg-2 mt-2 mb-2">
        <?php if(session()->has('checkpoint')): ?>
        <a href="<?php echo e(session()->get('checkpoint')); ?>" class="btn btn-outline-primary w-100"><span class="bi bi-caret-left me-1"></span><?php echo app('translator')->get('system.command.back'); ?></a>
        <?php else: ?>
        <a href="./" class="btn btn-outline-primary w-100"><span class="bi bi-caret-left me-1"></span><?php echo app('translator')->get('system.command.back'); ?></a>
        <?php endif; ?>
      </div>
    </div>
  </form>
</div>
<?php echo $__env->make('common/script-form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php /**PATH /home/xs876501/miyagawa-t.com/laravel-project/miyagawa-transport/resources/views/partner/form.blade.php ENDPATH**/ ?>