<?php
    if (Auth('admin')->User()->dashboard_style == 'light') {
        $text = 'dark';
        $bg = 'light';
    } else {
        $text = 'light';
        $bg = 'dark';
    }
?>

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('admin.topmenu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="main-panel ">
        <div class="content">
            <div class="page-inner">
                <div class="card">
                    <div class="card-body">
                        <div class="mt-2 mb-4">
                            <h1 class="title1 text-<?php echo e($text); ?> text-center">Edit <?php echo e($celebrity->name); ?> Profile</h1>
                        </div>
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.danger-alert','data' => []]); ?>
<?php $component->withName('danger-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.success-alert','data' => []]); ?>
<?php $component->withName('success-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    </div>
                </div>
                <div class="mb-5 row d-flex justify-content-center">
                    <div class="col-md-10">
                        <div class="card p-2 shadow ">
                            <div class='text-center'>
                                <img style="" id="file-ip-1-preview"
                                    src="<?php echo e(asset('storage/app/public/' . $celebrity->photo)); ?> " width="90"
                                    height="90" class='rounded-circle'>
                            </div>


                            <div class="card-body">
                                <div>
                                    <form method="POST" action="<?php echo e(route('edit_celebrity')); ?>"
                                        enctype="multipart/form-data">
                                        <?php echo csrf_field(); ?>
                                        <div class="form-row">

                                            <div class="form-group col-md-6">
                                                <h6 class="text-<?php echo e($text); ?>">Celebrity Name</h6>
                                                <input type="text"
                                                    class="form-control bg-<?php echo e($bg); ?> text-<?php echo e($text); ?>"
                                                    name="name" required value='<?php echo e($celebrity->name); ?>'>
                                                <div class='mt-2'>
                                                    <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                        <div class="alert alert-danger"><?php echo e($message); ?></div>
                                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-6">
                                                <h6 class="text-<?php echo e($text); ?>">Occupation</h6>
                                                <input type="text"
                                                    class="form-control bg-<?php echo e($bg); ?> text-<?php echo e($text); ?>"
                                                    name="known_for" value='<?php echo e($celebrity->known_for); ?>' requird>

                                                <div class='mt-2'>
                                                    <?php $__errorArgs = ['known_for'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                        <div class="alert alert-danger"><?php echo e($message); ?></div>
                                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-6">
                                                <h6 class="text-<?php echo e($text); ?>">Booking Fee
                                                    (<?php echo e($settings->currency); ?>)
                                                </h6>
                                                <input type="text"
                                                    class="form-control bg-<?php echo e($bg); ?> text-<?php echo e($text); ?>"
                                                    name="booking_fee" value='<?php echo e($celebrity->booking_fee); ?>'>

                                                <div class='mt-2'>
                                                    <?php $__errorArgs = ['booking_fee'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                        <div class="alert alert-danger"><?php echo e($message); ?></div>
                                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6">
                                                <h6 class="text-<?php echo e($text); ?>">Years Active</h6>
                                                <input type="text"
                                                    class="form-control bg-<?php echo e($bg); ?> text-<?php echo e($text); ?>"
                                                    name="years_active" value='<?php echo e($celebrity->years_active); ?>' requird>

                                                <div class='mt-2'>
                                                    <?php $__errorArgs = ['years_active'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                        <div class="alert alert-danger"><?php echo e($message); ?></div>
                                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                                </div>
                                            </div>
                                            <div class="form-group col-md-6">
                                                <h6 class="text-<?php echo e($text); ?>">Date of birth</h6>
                                                <input type="date"
                                                    class="form-control bg-<?php echo e($bg); ?> text-<?php echo e($text); ?>"
                                                    name="dob" value='<?php echo e($celebrity->dob); ?>' required>

                                                <div class='mt-2'>
                                                    <?php $__errorArgs = ['dob'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                        <div class="alert alert-danger"><?php echo e($message); ?></div>
                                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                                </div>
                                            </div>




                                            <div class="form-group col-md-6">
                                                <h6 class="text-<?php echo e($text); ?>">Featured</h6>
                                                <select type="text"
                                                    class="form-control  bg-<?php echo e($bg); ?> text-<?php echo e($text); ?>"
                                                    name="featured" required>
                                                    <option value='<?php echo e($celebrity->featured); ?>' selected>
                                                        <?php echo e($celebrity->featured); ?></opton>
                                                    <option value="featured">Featured</option>
                                                    <option value="not_featured">Not Featured</option>
                                                </select>

                                                <div class='mt-2'>
                                                    <?php $__errorArgs = ['featured'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                        <div class="alert alert-danger"><?php echo e($message); ?></div>
                                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6">
                                                <h6 class="text-<?php echo e($text); ?>">Celebrity Country</h6>
                                                <input name='country' type='text'
                                                    class='form-control bg-<?php echo e($bg); ?> text-<?php echo e($text); ?>'
                                                    value='<?php echo e($celebrity->country); ?>'>

                                                <div class='mt-2'>
                                                    <?php $__errorArgs = ['category'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                        <div class="alert alert-danger"><?php echo e($message); ?></div>
                                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                                </div>
                                            </div>




                                            <div class="form-group col-md-6">
                                                <h6 class="text-<?php echo e($text); ?>">Upload Celebrity photo</h6>
                                                <input type="file"
                                                    class="form-control bg-<?php echo e($bg); ?> text-<?php echo e($text); ?>"
                                                    name="photo" onchange="showPreview(event);">


                                                <div class='mt-2'>
                                                    <?php $__errorArgs = ['photo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                        <div class="alert alert-danger"><?php echo e($message); ?></div>
                                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                                </div>
                                            </div>

                                            <input type='hidden' name='celebrity_id' value='<?php echo e($celebrity->id); ?>'>
                                        </div>
                                        <button type="submit" class="px-5 btn  btn-primary">Update <?php echo e($celebrity->name); ?>

                                            Profile</button>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        function showPreview(event) {
            if (event.target.files.length > 0) {
                var src = URL.createObjectURL(event.target.files[0]);
                var preview = document.getElementById("file-ip-1-preview");
                preview.src = src;

            }
        }
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/remedycodes/public_html/celebrity.remedycodes.store/resources/views/admin/Celebrity/editcelebrity.blade.php ENDPATH**/ ?>