<?php if (isset($component)) { $__componentOriginalfd6eb4ed90dea78a3f155411631805a8 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalfd6eb4ed90dea78a3f155411631805a8 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widgets.modal','data' => ['xData' => 'send_receiver_email','id' => 'send-email','title' => 'Send Email to '.e($shipment->receiver_email).'','size' => 'xl']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widgets.modal'); ?>
<?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(['x-data' => 'send_receiver_email','id' => 'send-email','title' => 'Send Email to '.e($shipment->receiver_email).'','size' => 'xl']); ?>
    <div class="row my-5" x-init="set(<?php echo \Illuminate\Support\Js::from($shipment)->toHtml() ?>)">
        <div class="col-md-6">
            <label class="fw-bold">Receiver Name</label>
            <?php if (isset($component)) { $__componentOriginalc20efcd0a24c44e62f099cdab6078557 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc20efcd0a24c44e62f099cdab6078557 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widgets.alpine.input','data' => ['name' => 'name','xModel' => 'form.name','type' => 'email','readonly' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widgets.alpine.input'); ?>
<?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(['name' => 'name','x-model' => 'form.name','type' => 'email','readonly' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc20efcd0a24c44e62f099cdab6078557)): ?>
<?php $attributes = $__attributesOriginalc20efcd0a24c44e62f099cdab6078557; ?>
<?php unset($__attributesOriginalc20efcd0a24c44e62f099cdab6078557); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc20efcd0a24c44e62f099cdab6078557)): ?>
<?php $component = $__componentOriginalc20efcd0a24c44e62f099cdab6078557; ?>
<?php unset($__componentOriginalc20efcd0a24c44e62f099cdab6078557); ?>
<?php endif; ?>
        </div>

        <div class="col-md-6">
            <label class="fw-bold">Subject</label>
            <?php if (isset($component)) { $__componentOriginalc20efcd0a24c44e62f099cdab6078557 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc20efcd0a24c44e62f099cdab6078557 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widgets.alpine.input','data' => ['name' => 'subject','xModel' => 'form.subject']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widgets.alpine.input'); ?>
<?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(['name' => 'subject','x-model' => 'form.subject']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc20efcd0a24c44e62f099cdab6078557)): ?>
<?php $attributes = $__attributesOriginalc20efcd0a24c44e62f099cdab6078557; ?>
<?php unset($__attributesOriginalc20efcd0a24c44e62f099cdab6078557); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc20efcd0a24c44e62f099cdab6078557)): ?>
<?php $component = $__componentOriginalc20efcd0a24c44e62f099cdab6078557; ?>
<?php unset($__componentOriginalc20efcd0a24c44e62f099cdab6078557); ?>
<?php endif; ?>
        </div>
    </div>
    <div id="email-content"></div>
    <template x-for="error in errors.content">
        <div class="text-danger" x-text="error"></div>
    </template>
     <?php $__env->slot('footer', null, []); ?> 
        <?php if (isset($component)) { $__componentOriginalc62df324b31e47fcd55ce7c21242fada = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc62df324b31e47fcd55ce7c21242fada = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widgets.alpine.action-button','data' => ['class' => 'btn btn-primary','text' => 'Send','@click.prevent' => 'send']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widgets.alpine.action-button'); ?>
<?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(['class' => 'btn btn-primary','text' => 'Send','@click.prevent' => 'send']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc62df324b31e47fcd55ce7c21242fada)): ?>
<?php $attributes = $__attributesOriginalc62df324b31e47fcd55ce7c21242fada; ?>
<?php unset($__attributesOriginalc62df324b31e47fcd55ce7c21242fada); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc62df324b31e47fcd55ce7c21242fada)): ?>
<?php $component = $__componentOriginalc62df324b31e47fcd55ce7c21242fada; ?>
<?php unset($__componentOriginalc62df324b31e47fcd55ce7c21242fada); ?>
<?php endif; ?>
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal" @email-sent.window="$el.click()">Close</button>
     <?php $__env->endSlot(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalfd6eb4ed90dea78a3f155411631805a8)): ?>
<?php $attributes = $__attributesOriginalfd6eb4ed90dea78a3f155411631805a8; ?>
<?php unset($__attributesOriginalfd6eb4ed90dea78a3f155411631805a8); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfd6eb4ed90dea78a3f155411631805a8)): ?>
<?php $component = $__componentOriginalfd6eb4ed90dea78a3f155411631805a8; ?>
<?php unset($__componentOriginalfd6eb4ed90dea78a3f155411631805a8); ?>
<?php endif; ?>

<script>
    $(document).ready(function() {
        $('#email-content').summernote({
            placeholder: 'Send email to <?php echo e($shipment->receiver_email); ?>',
            height: 240,
        });
    });
</script><?php /**PATH /home/learntec/fastwaylogistics.org/resources/views/partials/email-modal.blade.php ENDPATH**/ ?>