<?php $__env->startSection('content'); ?>
<div class="container-fluid px-0">
  <div class="row mb-3">
    <div class="col">
      <h1 class="h2"><?php echo app('translator')->get('db.csv_billing'); ?><?php echo app('translator')->get('system.title.export'); ?></h1>
    </div>
  </div>
  <?php echo $__env->make('common/error-message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  <form action="<?php echo e(route('csv.billing.download')); ?>" method="get">
    <?php echo csrf_field(); ?>
    <div class="row">
      <div class="d-none d-md-block col-12 col-md">
      </div>
      <div class="col col-md p-2">
        <select id="search_billing_id" class="form-select" name="billing_id">
          <option value="all">すべて出力</option>
          <?php $__currentLoopData = $billings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $billing): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option value="<?php echo e($billing->id); ?>" <?php if($params['billing_id'] == $billing->id): ?> selected  <?php endif; ?>><?php echo e($billing->name); ?></option>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
      </div>
      <div class="col-12 col-md p-2">
        <div class="input-group ">
          <span class="input-group-text">開始日</span>
          <input type="date" class="form-control" name="from_at" placeholder="" value="<?php echo e(old('from_at', date('Y-m-d', strtotime($params['from_at'])))); ?>">
        </div>
      </div>
      <div class="col-12 col-md p-2">
        <div class="input-group ">
          <span class="input-group-text">終了日</span>
          <input type="date" class="form-control" name="to_at" placeholder="" value="<?php echo e(old('to_at', date('Y-m-d', strtotime($params['to_at'])))); ?>">
        </div>
      </div>
    </div>
    <div class="row justify-content-center mt-4 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-download me-2"></span><?php echo app('translator')->get('system.command.export'); ?></button>
      </div>
    </div>
  </form>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('common/main/layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/xs876501/miyagawa-t.com/laravel-project/miyagawa-transport/resources/views/csv/billing/index.blade.php ENDPATH**/ ?>