<?php $__env->startSection('content'); ?>
<div class="side-title">
    <h3><?php echo e($head ?? ''); ?></h3>
</div>

<div class="border-item">
    <form class="form-row" method="post" action="<?php echo e($action); ?>" enctype="multipart/form-data">
        <input type="hidden" name="user_id" value="<?php echo e(auth()->id()); ?>">
        <?php if($office ?? ''  && $office->id): ?>
            <?php echo method_field('PUT'); ?>
        <?php endif; ?>
        <?php echo csrf_field(); ?>

        <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="form-group col-lg-6">
                <label><?php echo e(meta('name', $language->local) ?? __('offices.name')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                <input type="text" name="name_<?php echo e($language->local); ?>" class="form-control <?php echo e($errors->has('name_'.$language->local) ? 'is-invalid' : ''); ?>" value="<?php echo e(old("name_{$language->local}", $office[$language->local]['name'] ?? "")); ?>">
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

        <div class="form-group col-lg-6">
            <label><?php echo e(meta('phone', getCurrentLocale()) ?? __('offices.phone')); ?> </label>
            <input type="tel" name="phone" class="form-control <?php echo e($errors->has('phone') ? 'is-invalid' : ''); ?>" value="<?php echo e(old("phone", $office[getCurrentLocale()]['phone'] ?? "")); ?>">
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('fax', getCurrentLocale()) ?? __('offices.fax')); ?> </label>
            <input type="text" name="fax" class="form-control <?php echo e($errors->has('fax') ? 'is-invalid' : ''); ?>" value="<?php echo e(old("fax", $office[getCurrentLocale()]['fax'] ?? "")); ?>">
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('po_box', getCurrentLocale()) ?? __('offices.po_box')); ?> </label>
            <input type="text" name="po_box" class="form-control <?php echo e($errors->has('po_box') ? 'is-invalid' : ''); ?>" value="<?php echo e(old("po_box", $office[getCurrentLocale()]['po_box'] ?? "")); ?>">
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('address', getCurrentLocale()) ?? __('offices.address')); ?> </label>
            <input type="text" name="address" class="form-control <?php echo e($errors->has('address') ? 'is-invalid' : ''); ?>" value="<?php echo e(old("address", $office[getCurrentLocale()]['address'] ?? "")); ?>">
        </div>

        <div class="text-center mt-5 col-12">
            <button class="butn"><span><?php echo e(__('dashboard.save')); ?></span></button>
        </div>
    </form>
</div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('inner_js'); ?>

<?php $__env->stopSection(); ?>




<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\nesma\resources\views/admin/offices/form.blade.php ENDPATH**/ ?>