<?php $__env->startSection('title','Create Book'); ?>
<?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.book')); ?></h3>
                <a href="<?php echo e(route('books.index')); ?>" class="btn btn-primary" title="<?php echo e(__('lang.books')); ?>">
                    <i class='bi bi-list'></i>
                </a>
            </div>
            <div class="tile-body">
                <form action="<?php echo e(route('books.store')); ?>" method="post">
                    <?php echo csrf_field(); ?>
                    <?php echo $__env->make('book.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(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($lastBook): ?>
                <div class="d-flex justify-content-between align-items-center">
                    <h3><?php echo e(__('lang.last_inserted_book')); ?></h3>
                    <?php echo $__env->make('book.partials.actions', ['el' => $lastBook], \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($lastBook->id); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.title')); ?></th>
                        <td><?php echo e($lastBook->title); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.category')); ?></th>
                        <td><?php echo e($lastBook->category->name); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.location')); ?></th>
                        <td><?php echo e($lastBook->location->name); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.language')); ?></th>
                        <td><?php echo e($lastBook->language->name); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.author')); ?></th>
                        <td><?php echo e($lastBook->author); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.translator')); ?></th>
                        <td><?php echo e($lastBook->translator); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.publisher')); ?></th>
                        <td><?php echo e($lastBook->publisher); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.isbn')); ?></th>
                        <td><?php echo e($lastBook->isbn); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.price')); ?></th>
                        <td><?php echo e($lastBook->price); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.qty')); ?></th>
                        <td><?php echo e($lastBook->qty); ?></td>
                    </tr>               
                </table>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?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 /home/faraaadm/library.farau.edu.af/resources/views/book/create.blade.php ENDPATH**/ ?>