<?php $__env->startSection('title','Create Member'); ?>
<?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.member')); ?></h3>
                <a href="<?php echo e(route('members.index')); ?>" class="btn btn-primary" title="<?php echo e(__('lang.members')); ?>">
                    <i class='bi bi-list'></i>
                </a>
            </div>
            <div class="tile-body">
                <form action="<?php echo e(route('members.store')); ?>" method="post">
                    <?php echo csrf_field(); ?>
                    <?php echo $__env->make('member.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($lastMember): ?>
                <div class="d-flex justify-content-between align-items-center">
                    <h3><?php echo e(__('lang.last_inserted_member')); ?></h3>
                    <?php echo $__env->make('member.partials.actions', ['el' => $lastMember], \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($lastMember->id); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.name')); ?></th>
                        <td><?php echo e($lastMember->name); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.email')); ?></th>
                        <td><?php echo e($lastMember->email); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.phone')); ?></th>
                        <td><?php echo e($lastMember->phone); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.address')); ?></th>
                        <td><?php echo e($lastMember->address); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo e(__('lang.details')); ?></th>
                        <td><?php echo e($lastMember->details); ?></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/member/create.blade.php ENDPATH**/ ?>