<?php $__env->startPush('styles'); ?>
    <link href="<?php echo e(asset('/business/css/buyer.css')); ?>" rel="stylesheet">
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content_buyer'); ?>
    <div class="buyer-page">
        <?php echo $__env->make('business.pages.buyer.partials.navbar-buyer', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <div class="content mt-4">
            <div class="container-page">
                <div class="bg-white text-center p-4">
                    <div>
                        ボードを選択して、設定ボタンを押してください。
                    </div>
                    <form action="<?php echo e(route('buyer.select')); ?>" method="post">
                        <?php echo csrf_field(); ?>
                        <div class="d-flex justify-content-center mt-4">
                            <div class="btn-current">
                                <span>現在のボード</span>
                            </div>
                            <select class="btn-action" name="id">
                                <option value="">未選択</option>
                                <?php if(!empty($buyers)): ?>
                                    <?php $__currentLoopData = $buyers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $buyer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($buyer->id); ?>" <?php echo e(!empty(session('buyer_active')) && session('buyer_active')->id == $buyer->id ? 'selected' : ''); ?>><?php echo e($buyer->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </select>
                            <button class="btn-action dark">
                                設定
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <?php if(session('success')): ?>
        <?php echo $__env->make('business.pages.buyer.partials.modal-message', ['id' => 'modal-buyer','message' => session('success')], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <script>
            $('.btn-modal-buyer').click();
        </script>
    <?php endif; ?>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
    <script src="<?php echo e(asset('/business/js/buyer.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('business.layouts.base', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>