<?php $__env->startSection('site_title', formatTitle([__('Preferences'), config('settings.title')])); ?>

<?php echo $__env->make('shared.breadcrumbs', ['breadcrumbs' => [
    ['url' => route('dashboard'), 'title' => __('Home')],
    ['url' => route('account'), 'title' => __('Account')],
    ['title' => __('Preferences')]
]], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<div class="d-flex"><h1 class="h2 mb-3 text-break"><?php echo e(__('Preferences')); ?></h1></div>

<div class="card border-0 shadow-sm">
    <div class="card-header">
        <div class="font-weight-medium py-1">
            <?php echo e(__('Preferences')); ?>

        </div>
    </div>
    <div class="card-body">
        <ul class="nav nav-pills d-flex flex-fill flex-column flex-md-row mb-3" id="pills-tab" role="tablist">
            <li class="nav-item flex-grow-1 text-center">
                <a class="nav-link active" id="pills-brand-tab" data-toggle="pill" href="#pills-brand" role="tab" aria-controls="pills-brand" aria-selected="true"><?php echo e(__('Brand')); ?></a>
            </li>

            <li class="nav-item flex-grow-1 text-center">
                <a class="nav-link" id="pills-privacy-tab" data-toggle="pill" href="#pills-privacy" role="tab" aria-controls="pills-privacy" aria-selected="false"><?php echo e(__('Privacy')); ?></a>
            </li>

            <li class="nav-item flex-grow-1 text-center">
                <a class="nav-link" id="pills-export-tab" data-toggle="pill" href="#pills-export" role="tab" aria-controls="pills-export" aria-selected="false"><?php echo e(__('Export')); ?></a>
            </li>
        </ul>

        <?php echo $__env->make('shared.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

        <form action="<?php echo e(route('account.preferences')); ?>" method="post" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>

            <div class="tab-content" id="pills-tabContent">
                <div class="tab-pane fade show active" id="pills-brand" role="tabpanel" aria-labelledby="pills-brand-tab">
                    <div class="alert alert-info">
                        <?php echo e(__('By branding a report, your information will show up when someone prints, or saves as PDF a report.')); ?>

                    </div>
                    
                    <div class="form-group">
                        <label for="i-brand-logo"><?php echo e(__('Logo')); ?></label>
                        <input type="text" name="brand_logo" id="i-brand-logo" class="form-control<?php echo e($errors->has('brand_logo') ? ' is-invalid' : ''); ?>" value="<?php echo e(old('brand_logo') ?? (Auth::user()->brand->logo ?? null)); ?>" placeholder="https://example.com/image.png">
                        <?php if($errors->has('brand_logo')): ?>
                            <span class="invalid-feedback" role="alert">
                                <strong><?php echo e($errors->first('brand_logo')); ?></strong>
                            </span>
                        <?php endif; ?>
                    </div>
                    
                    <div class="form-group">
                        <label for="i-brand-name"><?php echo e(__('Name')); ?></label>
                        <input type="text" name="brand_name" id="i-brand-name" class="form-control<?php echo e($errors->has('brand_name') ? ' is-invalid' : ''); ?>" value="<?php echo e(old('brand_name') ?? (Auth::user()->brand->name ?? null)); ?>">
                        <?php if($errors->has('brand_name')): ?>
                            <span class="invalid-feedback" role="alert">
                                <strong><?php echo e($errors->first('brand_name')); ?></strong>
                            </span>
                        <?php endif; ?>
                    </div>

                    <div class="form-group">
                        <label for="i-brand-url"><?php echo e(__('URL')); ?></label>
                        <input type="text" name="brand_url" id="i-brand-url" class="form-control<?php echo e($errors->has('brand_url') ? ' is-invalid' : ''); ?>" value="<?php echo e(old('brand_url') ?? (Auth::user()->brand->url ?? null)); ?>" placeholder="https://example.com">
                        <?php if($errors->has('brand_url')): ?>
                            <span class="invalid-feedback" role="alert">
                                <strong><?php echo e($errors->first('brand_url')); ?></strong>
                            </span>
                        <?php endif; ?>
                    </div>

                    <div class="form-group">
                        <label for="i-brand-email"><?php echo e(__('Email')); ?></label>
                        <input type="text" name="brand_email" id="i-brand-email" class="form-control<?php echo e($errors->has('brand_email') ? ' is-invalid' : ''); ?>" value="<?php echo e(old('brand_email') ?? (Auth::user()->brand->email ?? null)); ?>">
                        <?php if($errors->has('brand_email')): ?>
                            <span class="invalid-feedback" role="alert">
                                <strong><?php echo e($errors->first('brand_email')); ?></strong>
                            </span>
                        <?php endif; ?>
                    </div>
                    
                    <div class="form-group">
                        <label for="i-brand-phone"><?php echo e(__('Phone')); ?></label>
                        <input type="text" name="brand_phone" id="i-brand-phone" class="form-control<?php echo e($errors->has('brand_phone') ? ' is-invalid' : ''); ?>" value="<?php echo e(old('brand_phone') ?? (Auth::user()->brand->phone ?? null)); ?>">
                        <?php if($errors->has('brand_phone')): ?>
                            <span class="invalid-feedback" role="alert">
                                <strong><?php echo e($errors->first('brand_phone')); ?></strong>
                            </span>
                        <?php endif; ?>
                    </div>
                </div>

                <div class="tab-pane fade" id="pills-privacy" role="tabpanel" aria-labelledby="pills-privacy-tab">
                    <div class="form-group">
                        <label for="i-default-privacy" class="d-inline-flex flex-wrap align-items-center"><span class="<?php echo e((__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')); ?>"><?php echo e(__('Privacy')); ?></span><span class="badge badge-secondary"><?php echo e(__('Default')); ?></span></label>
                        <select name="default_privacy" id="i-default-privacy" class="custom-select<?php echo e($errors->has('default_privacy') ? ' is-invalid' : ''); ?>">
                            <?php $__currentLoopData = [0 => __('Public'), 1 => __('Private')]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($key); ?>" <?php if((Auth::user()->default_privacy == $key && old('default_privacy') == null) || (old('default_privacy') !== null && old('default_privacy') == $key)): ?> selected <?php endif; ?>><?php echo e($value); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                        <?php if($errors->has('default_privacy')): ?>
                            <span class="invalid-feedback d-block" role="alert">
                                <strong><?php echo e($errors->first('default_privacy')); ?></strong>
                            </span>
                        <?php endif; ?>
                    </div>
                </div>

                <div class="tab-pane fade" id="pills-export" role="tabpanel" aria-labelledby="pills-export-tab">
                    <div class="form-group">
                        <label for="i-default-export-detailed" class="d-inline-flex flex-wrap align-items-center"><span class="<?php echo e((__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')); ?>"><?php echo e(__('Detailed')); ?></span><span class="badge badge-secondary"><?php echo e(__('Default')); ?></span></label>
                        <select name="default_export_detailed" id="i-default-export-detailed" class="custom-select<?php echo e($errors->has('default_export_detailed') ? ' is-invalid' : ''); ?>">
                            <?php $__currentLoopData = [0 => __('No'), 1 => __('Yes')]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($key); ?>" <?php if((old('default_export_detailed') !== null && old('default_export_detailed') == $key) || (Auth::user()->default_export_detailed == $key && old('default_export_detailed') == null)): ?> selected <?php endif; ?>><?php echo e($value); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                        <?php if($errors->has('default_export_detailed')): ?>
                            <span class="invalid-feedback d-block" role="alert">
                                <strong><?php echo e($errors->first('default_export_detailed')); ?></strong>
                            </span>
                        <?php endif; ?>
                    </div>
                </div>
            </div>

            <div class="row mt-3">
                <div class="col">
                    <button type="submit" name="submit" class="btn btn-primary"><?php echo e(__('Save')); ?></button>
                </div>
                <div class="col-auto">
                </div>
            </div>
        </form>
    </div>
</div><?php /**PATH /home/innovitt/domains/panel.rankrepo.com/public_html/resources/views/account/preferences.blade.php ENDPATH**/ ?>