<?php $__env->startSection('title', translate('Settings')); ?>
<?php $__env->startSection('breadcrumbs', Breadcrumbs::render('workspace.settings')); ?>
<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('themes.basic.workspace.settings.includes.tabs', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="dashboard-card card-v mb-3">
        <div class="form-section">
            <h5 class="mb-0"><?php echo e(translate('Account details')); ?></h5>
        </div>
        <form action="<?php echo e(route('workspace.settings.update')); ?>" method="POST">
            <?php echo csrf_field(); ?>
            <div class="row g-3 mb-4">
                <div class="col-12 col-lg-4">
                    <label class="form-label"><?php echo e(translate('First Name')); ?></label>
                    <input type="firstname" name="firstname" class="form-control form-control-md"
                        value="<?php echo e($user->firstname); ?>" required>
                </div>
                <div class="col-12 col-lg-4">
                    <label class="form-label"><?php echo e(translate('Last Name')); ?></label>
                    <input type="lastname" name="lastname" class="form-control form-control-md"
                        value="<?php echo e($user->lastname); ?>" required>
                </div>
                <div class="col-12 col-lg-4">
                    <label class="form-label"><?php echo e(translate('Username')); ?></label>
                    <input type="text" name="username" class="form-control form-control-md" value="<?php echo e($user->username); ?>"
                        disabled>
                </div>
                <div class="col-12">
                    <label class="form-label"><?php echo e(translate('Email address')); ?></label>
                    <input type="email" name="email" class="form-control form-control-md" value="<?php echo e($user->email); ?>">
                </div>
                <div class="col-lg-6">
                    <label class="form-label"><?php echo e(translate('Address line 1')); ?></label>
                    <input type="text" name="address_line_1" class="form-control form-control-md"
                        value="<?php echo e(@$user->address->line_1); ?>" required>
                </div>
                <div class="col-lg-6">
                    <label class="form-label"><?php echo e(translate('Address line 2')); ?></label>
                    <input type="text" name="address_line_2" class="form-control form-control-md"
                        value="<?php echo e(@$user->address->line_2); ?>">
                </div>
                <div class="col-lg-4">
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(translate('City')); ?></label>
                        <input type="text" name="city" class="form-control form-control-md"
                            value="<?php echo e(@$user->address->city); ?>" required>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(translate('State')); ?></label>
                        <input type="text" name="state" class="form-control form-control-md"
                            value="<?php echo e(@$user->address->state); ?>" required>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(translate('Postal code')); ?></label>
                        <input type="text" name="zip" class="form-control form-control-md"
                            value="<?php echo e(@$user->address->zip); ?>" required>
                    </div>
                </div>
                <div class="col-lg-12">
                    <label class="form-label"><?php echo e(translate('Country')); ?></label>
                    <select name="country" class="form-select form-select-md" required>
                        <option value="">--</option>
                        <?php $__currentLoopData = countries(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $countryCode => $countryName): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($countryCode); ?>" <?php if($countryCode == @$user->address->country): echo 'selected'; endif; ?>>
                                <?php echo e($countryName); ?>

                            </option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
                <?php if($user->isAuthor()): ?>
                    <div class="col-lg-12">
                        <label class="form-label"><?php echo e(translate('Exclusivity of Your Items')); ?></label>
                        <select name="exclusivity" class="form-select form-select-md">
                            <option value="">--</option>
                            <option value="exclusive" <?php if($user->isExclusiveAuthor()): echo 'selected'; endif; ?>>
                                <?php echo e(translate('Exclusive')); ?>

                            </option>
                            <option value="non_exclusive" <?php if($user->isNonExclusiveAuthor()): echo 'selected'; endif; ?>>
                                <?php echo e(translate('Non Exclusive')); ?>

                            </option>
                        </select>
                        <div class="form-text"><?php echo e(translate('You will be awarded an exclusive author badge')); ?>

                        </div>
                    </div>
                <?php endif; ?>
            </div>
            <button class="btn btn-primary btn-md"><?php echo e(translate('Save Changes')); ?></button>
        </form>
    </div>
    <?php $__env->startPush('styles_libs'); ?>
        <link rel="stylesheet" href="<?php echo e(asset('vendor/libs/bootstrap/select/bootstrap-select.min.css')); ?>">
    <?php $__env->stopPush(); ?>
    <?php $__env->startPush('scripts_libs'); ?>
        <script src="<?php echo e(asset('vendor/libs/bootstrap/select/bootstrap-select.min.js')); ?>"></script>
    <?php $__env->stopPush(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('themes.basic.workspace.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gxramdau/public_html/resources/views/themes/basic/workspace/settings/index.blade.php ENDPATH**/ ?>