<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('system.title.create'); ?></h1>
      <?php elseif($target == 'update'): ?>
      <h1 class="h2"><?php echo app('translator')->get('db.reports'); ?> <?php echo app('translator')->get('system.title.edit'); ?></h1>
      <?php endif; ?>
    </div>
  </div>
  <?php if($target == 'store'): ?>
  <form action="/report" method="post" onsubmit="return submitForm()">
  <?php elseif($target == 'update'): ?>
  <form action="/report/<?php echo e($report->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(); ?>
        <div class="card border-secondary mb-3 w-100">
          <div class="card-header mb-2"><?php echo app('translator')->get('db.reports'); ?> <?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.user_id'); ?></label>
                    <select class="form-select <?php $__errorArgs = ['user_id'];
$__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="user_id">
                      <?php
                        $old_user_id = '';
                        if ($target == 'store') {
                          $old_user_id = Auth::user()->id;
                        } else {
                          $old_user_id = $report->user_id;
                        }
                      ?>
                      <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($user->id); ?>" <?php if(old('user_id', $old_user_id)==$user->id): ?> selected  <?php endif; ?>><?php echo e($user->name); ?></option>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                    <?php $__errorArgs = ['user_id'];
$__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.car_id'); ?></label>
                    <select class="form-select <?php $__errorArgs = ['car_id'];
$__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="car_id">
                      <?php
                        $old_car_id = '';
                        if ($target == 'store') {
                          $old_car_id = Auth::user()->car_id;
                        } else {
                          $old_car_id = $report->car_id;
                        }
                      ?>
                      <?php $__currentLoopData = $cars; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $car): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($car->id); ?>" <?php if(old('car_id', $old_car_id)==$car->id): ?> selected  <?php endif; ?>><?php echo e($car->number); ?></option>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                    <div class="form-text"><?php echo app('translator')->get('db.car.use'); ?>が「<?php echo app('translator')->get('db.car.use-1'); ?>」のみ表示されています</div>
                    <?php $__errorArgs = ['car_id'];
$__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>
        <div id="report_start" class="container-fluid p-0 m-0">
          <div class="row justify-content-center mb-3">
            <div class="col-12 col-md-5 col-lg-4 mt-2 mb-2">
              <button type="submit" id="submit-button" class="btn btn-dark w-100"><span class="bi bi-check-circle me-2"></span><?php echo app('translator')->get('system.command.in_the_middle'); ?></button>
            </div>
          </div>
        </div>
        <div class="card border-secondary mb-3 w-100">
          <div class="card-header mb-2"><?php echo app('translator')->get('db.report.start'); ?> <?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.start_point'); ?></label>
                    <?php
                      $old_start_point = '';
                      if ($target == 'store') {
                        $old_start_point = '弥富車庫';
                      } else {
                        $old_start_point = $report->start_point;
                      }
                    ?>
                    <input type="text" class="form-control <?php $__errorArgs = ['start_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="start_point" placeholder="" value="<?php echo e(old('start_point', $old_start_point)); ?>">
                    <?php $__errorArgs = ['start_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 class="form-group mb-4">
                    <label class="form-label mb-2"><?php echo app('translator')->get('db.report.start_at'); ?></label>
                    <?php
                      $old_start_at = '';
                      if ($target == 'store') {
                        if (empty($params['start_at'])) {
                          $old_start_at = date('Y-m-d\TH:i');
                        } else {
                          $old_start_at = $params['start_at'].'T00:00';
                        }
                      } else {
                        $old_start_at = date('Y-m-d\TH:i', strtotime($report->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>
              <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.start_meter'); ?></label>
                    <div class="input-group <?php $__errorArgs = ['start_meter'];
$__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" id="start_meter" class="form-control <?php $__errorArgs = ['start_meter'];
$__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_meter" placeholder="" value="<?php echo e(old('start_meter', $report->start_meter)); ?>" onchange="calcMileage()">
                      <span class="input-group-text"><?php echo app('translator')->get('system.unit.km'); ?></span>
                    </div>
                    <?php $__errorArgs = ['start_meter'];
$__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.alcohol_check'); ?></label>
                    <div class="form-check <?php $__errorArgs = ['alcohol_check'];
$__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); ?> mt-1">
                      <label class="form-check-label">
                        <input type="checkbox" class="form-check-input <?php $__errorArgs = ['alcohol_check'];
$__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="alcohol_check" value="1" <?php if(old('alcohol_check', $report->alcohol_check) == '1'): ?> checked <?php endif; ?>>
                        <?php echo app('translator')->get('db.report.alcohol_check-1'); ?>
                      </label>
                    </div>
                    <?php $__errorArgs = ['alcohol_check'];
$__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>
        <div id="report_end" class="container-fluid p-0 m-0">
          <div class="row justify-content-center mb-3">
            <div class="col-12 col-md-5 col-lg-4 mt-2 mb-2">
              <button type="submit" id="submit-button" class="btn btn-dark w-100"><span class="bi bi-check-circle me-2"></span><?php echo app('translator')->get('system.command.in_the_middle'); ?></button>
            </div>
          </div>
        </div>
        <div class="card border-secondary mb-3 w-100">
          <div class="card-header mb-2"><?php echo app('translator')->get('db.report.end'); ?> <?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.end_point'); ?></label>
                    <?php
                      $old_end_point = '';
                      if ($target == 'store') {
                        $old_end_point = '弥富車庫';
                      } else {
                        $old_end_point = $report->end_point;
                      }
                    ?>
                    <input type="text" class="form-control <?php $__errorArgs = ['end_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="end_point" placeholder="" value="<?php echo e(old('end_point', $old_end_point)); ?>">
                    <?php $__errorArgs = ['end_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 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->end_at)) {
                        $old_end_at = date('Y-m-d\TH:i', strtotime($report->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); ?>
                  </div>
                </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.end_meter'); ?></label>
                    <div class="input-group <?php $__errorArgs = ['end_meter'];
$__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" id="end_meter" class="form-control <?php $__errorArgs = ['end_meter'];
$__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_meter" placeholder="" value="<?php echo e(old('end_meter', $report->end_meter)); ?>" onchange="calcMileage()">
                      <span class="input-group-text"><?php echo app('translator')->get('system.unit.km'); ?></span>
                    </div>
                    <?php $__errorArgs = ['end_meter'];
$__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.milage'); ?></label>
                    <input type="text" id="mileage" class="form-control" name="" placeholder="" value="" readonly>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div id="report_oil" class="container-fluid p-0 m-0">
          <div class="row justify-content-center mb-3">
            <div class="col-12 col-md-5 col-lg-4 mt-2 mb-2">
              <button type="submit" id="submit-button" class="btn btn-dark w-100"><span class="bi bi-check-circle me-2"></span><?php echo app('translator')->get('system.command.in_the_middle'); ?></button>
            </div>
          </div>
        </div>
        <div class="card border-secondary mb-3 w-100">
          <div class="card-header mb-2"><?php echo app('translator')->get('db.report.oil'); ?> <?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-4">
                  <div class="form-group mb-4">
                    <label class="form-label mb-2"><?php echo app('translator')->get('db.report.light_oil'); ?></label>
                    <div class="input-group <?php $__errorArgs = ['light_oil'];
$__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 = ['light_oil'];
$__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="light_oil" placeholder="" value="<?php echo e(old('light_oil', $report->light_oil)); ?>">
                      <span class="input-group-text">&nbsp;<?php echo app('translator')->get('system.unit.liter'); ?></span>
                    </div>
                    <?php $__errorArgs = ['light_oil'];
$__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-4">
                  <div class="form-group mb-4">
                    <label class="form-label mb-2"><?php echo app('translator')->get('db.report.adblue'); ?></label>
                    <div class="input-group <?php $__errorArgs = ['adblue'];
$__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 = ['adblue'];
$__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="adblue" placeholder="" value="<?php echo e(old('adblue', $report->adblue)); ?>">
                      <span class="input-group-text">&nbsp;<?php echo app('translator')->get('system.unit.liter'); ?></span>
                    </div>
                    <?php $__errorArgs = ['adblue'];
$__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-4">
                  <div class="form-group mb-4">
                    <label class="form-label mb-2"><?php echo app('translator')->get('db.report.adblue_handy'); ?></label>
                    <div class="input-group <?php $__errorArgs = ['adblue_handy'];
$__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 = ['adblue_handy'];
$__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="adblue_handy" placeholder="" value="<?php echo e(old('adblue_handy', $report->adblue_handy)); ?>">
                      <span class="input-group-text">&nbsp;<?php echo app('translator')->get('system.unit.ko'); ?></span>
                    </div>
                    <?php $__errorArgs = ['adblue_handy'];
$__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>
        <div id="report_other" class="container-fluid p-0 m-0">
          <div class="row justify-content-center mb-3">
            <div class="col-12 col-md-5 col-lg-4 mt-2 mb-2">
              <button type="submit" id="submit-button" class="btn btn-dark w-100"><span class="bi bi-check-circle me-2"></span><?php echo app('translator')->get('system.command.in_the_middle'); ?></button>
            </div>
          </div>
        </div>
        <div class="card border-secondary mb-3 w-100">
          <div class="card-header mb-2"><?php echo app('translator')->get('db.report.other'); ?> <?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">
                  <div class="form-group mb-4">
                    <label class="form-label mb-2"><?php echo app('translator')->get('db.report.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="5" name="note"><?php echo e(old('note', $report->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>
      </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(); ?>
<script>
    window.addEventListener('load', function() {
      calcMileage();
    }, false);

    function calcMileage() {
      let start_meter = document.getElementById('start_meter');
      let end_meter = document.getElementById('end_meter');
      let mileage = document.getElementById('mileage');
      if (start_meter.value != '' && end_meter.value != '') {
        mileage.value = Number(end_meter.value) - Number(start_meter.value);
      }
    }

    <?php if(!empty($params['hash'])): ?>
    window.addEventListener('DOMContentLoaded', () => {
      const targetId = '<?php echo e($params['hash']); ?>';
      const targetElement = document.getElementById(targetId);
      const targetOffsetTop = window.pageYOffset + targetElement.getBoundingClientRect().top;
      window.scrollTo({
        top: targetOffsetTop,
        behavior: "smooth"
      });
    });
    <?php endif; ?>
</script><?php /**PATH /home/xs876501/miyagawa-t.com/laravel-project/miyagawa-transport/resources/views/report/form.blade.php ENDPATH**/ ?>