<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.reports'); ?> <?php echo app('translator')->get('db.report_rests'); ?> <br class="d-md-none" /><?php echo app('translator')->get('system.title.create'); ?></h1>
      <?php elseif($target == 'update'): ?>
      <h1 class="h2"><?php echo app('translator')->get('db.reports'); ?> <?php echo app('translator')->get('db.report_rests'); ?> <br class="d-md-none" /><?php echo app('translator')->get('system.title.edit'); ?></h1>
      <?php endif; ?>
    </div>
  </div>
  <?php if($target == 'store'): ?>
  <form action="/report/<?php echo e($report->id); ?>/rest" method="post" onsubmit="return submitForm()">
  <?php elseif($target == 'update'): ?>
  <form action="/report/<?php echo e($report->id); ?>/rest/<?php echo e($report_rest->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-12 col-lg-12">
        <?php echo $__env->make('common/error-message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php echo $__env->make('report/info', ['report' => $report], \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.report_rests'); ?> <?php echo app('translator')->get('system.title.information'); ?></div>
          <div class="card-body">
            <div class="container-fluid p-0 m-0">
              <div class="row">
                <div class="col-12 col-md-6">
                  <div class="form-group mb-4">
                    <label class="form-label mb-2"><?php echo app('translator')->get('db.report_rest.point'); ?></label>
                    <input type="text" class="form-control <?php $__errorArgs = ['point'];
$__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="point" placeholder="" value="<?php echo e(old('point', $report_rest->point)); ?>">
                    <?php $__errorArgs = ['point'];
$__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 class="col-12 col-md-6">
                </div>
              </div>
              <div class="row">
                <div class="col-12 col-md-6">
                  <div class="form-group mb-4">
                    <label class="form-label mb-2"><?php echo app('translator')->get('db.report_rest.start_at'); ?></label>
                    <?php
                      $old_start_at = '';
                      if ($target == 'store') {
                        $old_start_at = date('Y-m-d\TH:i');
                      } else {
                        $old_start_at = date('Y-m-d\TH:i', strtotime($report_rest->start_at));
                      }
                    ?>
                    <input type="datetime-local" class="form-control <?php $__errorArgs = ['start_at'];
$__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="start_at" placeholder="" value="<?php echo e(old('start_at', $old_start_at)); ?>">
                    <?php $__errorArgs = ['start_at'];
$__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 class="col-12 col-md-6">
                  <div class="form-group mb-4">
                    <label class="form-label mb-2"><?php echo app('translator')->get('db.report.end_at'); ?></label>
                    <?php
                      $old_end_at = '';
                      if ($target == 'update' && !empty($report_rest->end_at)) {
                        $old_end_at = date('Y-m-d\TH:i', strtotime($report_rest->end_at));
                      }
                    ?>
                    <input type="datetime-local" class="form-control <?php $__errorArgs = ['end_at'];
$__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="end_at" placeholder="" value="<?php echo e(old('end_at', $old_end_at)); ?>">
                    <?php $__errorArgs = ['end_at'];
$__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); ?>
                    <?php if($target == 'store'): ?>
                    <div class="form-text"><?php echo app('translator')->get('db.report.end_at'); ?>は後からでも入力できます</div>
                    <?php endif; ?>
                  </div>
                </div>
              </div>
            </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-second')): ?>
        <a href="<?php echo e(session()->get('checkpoint-second')); ?>" 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/report/rest/form.blade.php ENDPATH**/ ?>