<?php $__env->startSection('title','Create Waste'); ?>
<?php echo $__env->make('layouts.select2', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-md-12">
        <div class="tile">
            <div class="tile-title-w-btn">
                <h3 class="title"><i class="bi bi-list-ul"></i> <?php echo e(__('lang.new_waste')); ?></h3>
                <a href="<?php echo e(route('wastes.index')); ?>" class="btn btn-primary" title="<?php echo e(__('lang.wastes')); ?>">
                    <i class='bi bi-list'></i>
                </a>
            </div>
            <div class="tile-body">
                <form action="<?php echo e(route('wastes.store')); ?>" method="post">
                    <?php echo csrf_field(); ?>
                    <?php echo $__env->make('waste.partials._form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <?php if (isset($component)) { $__componentOriginalb6998a2a28ecb18ed045802822294d2a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb6998a2a28ecb18ed045802822294d2a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.buttons.save','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('buttons.save'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb6998a2a28ecb18ed045802822294d2a)): ?>
<?php $attributes = $__attributesOriginalb6998a2a28ecb18ed045802822294d2a; ?>
<?php unset($__attributesOriginalb6998a2a28ecb18ed045802822294d2a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb6998a2a28ecb18ed045802822294d2a)): ?>
<?php $component = $__componentOriginalb6998a2a28ecb18ed045802822294d2a; ?>
<?php unset($__componentOriginalb6998a2a28ecb18ed045802822294d2a); ?>
<?php endif; ?>
                </form>
                <br>
                <?php if($lastWaste): ?>
                <div class="d-flex justify-content-between align-items-center">
                    <h3><?php echo e(__('lang.last_inserted_waste')); ?></h3>
                    <?php echo $__env->make('waste.partials.actions', ['el' => $lastWaste], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                </div>
                <table class="table table-sm table-striped">
                    <tr>
                        <th>ID</th>
                        <td><?php echo e($lastWaste->id); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.book')); ?></th>
                        <td><?php echo e($lastWaste->book->title); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.waste_type')); ?></th>
                        <td><?php echo e($lastWaste->waste_type); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.date')); ?></th>
                        <td><?php echo e($lastWaste->date); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.details')); ?></th>
                        <td><?php echo e($lastWaste->details); ?></td>
                    </tr>
                </table>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Laravel\mohe_library\resources\views/waste/create.blade.php ENDPATH**/ ?>