<!-- default value -->
<?php
    $go_back_url = action('SellPosController@index');
    $transaction_sub_type = '';
    $view_suspended_sell_url = action('SellController@index').'?suspended=1';
    $pos_redirect_url = action('SellPosController@create');
?>

<?php if(!empty($pos_module_data)): ?>
    <?php $__currentLoopData = $pos_module_data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php
            if(!empty($value['go_back_url'])) {
                $go_back_url = $value['go_back_url'];
            }

            if(!empty($value['transaction_sub_type'])) {
                $transaction_sub_type = $value['transaction_sub_type'];
                $view_suspended_sell_url .= '&transaction_sub_type='.$transaction_sub_type;
                $pos_redirect_url .= '?sub_type='.$transaction_sub_type;
            }
        ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<input type="hidden" name="transaction_sub_type" id="transaction_sub_type" value="<?php echo e($transaction_sub_type, false); ?>">
<?php $request = app('Illuminate\Http\Request'); ?>
<div class="col-md-12 no-print pos-header">
  <input type="hidden" id="pos_redirect_url" value="<?php echo e($pos_redirect_url, false); ?>">
  <div class="row">
    <div class="col-md-6">
      <div class="m-6 mt-5" style="display: flex;">
        <p ><strong><?php echo app('translator')->getFromJson('sale.location'); ?>: &nbsp;</strong> 
          <?php if(empty($transaction->location_id)): ?>
            <?php if(count($business_locations) > 1): ?>
            <div style="width: 28%;margin-bottom: 5px;">
               <?php echo Form::select('select_location_id', $business_locations, $default_location->id ?? null , ['class' => 'form-control input-sm',
                'id' => 'select_location_id', 
                'required', 'autofocus'], $bl_attributes);; ?>

            </div>
            <?php else: ?>
              <?php echo e($default_location->name, false); ?>

            <?php endif; ?>
          <?php endif; ?>

          <?php if(!empty($transaction->location_id)): ?> <?php echo e($transaction->location->name, false); ?> <?php endif; ?> &nbsp; <span class="curr_datetime"><?php echo e(\Carbon::createFromTimestamp(strtotime('now'))->format(session('business.date_format') . ' ' . 'h:i A'), false); ?></span> <i class="fa fa-keyboard hover-q text-muted" aria-hidden="true" data-container="body" data-toggle="popover" data-placement="bottom" data-content="<?php echo $__env->make('sale_pos.partials.keyboard_shortcuts_details', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>" data-html="true" data-trigger="hover" data-original-title="" title=""></i>
        </p>
      </div>
    </div>
    <div class="col-md-6">
      <a href="<?php echo e($go_back_url, false); ?>" title="<?php echo e(__('lang_v1.go_back'), false); ?>" class="btn btn-info btn-flat m-6 btn-xs m-5 pull-right">
        <strong><i class="fa fa-backward fa-lg"></i></strong>
      </a>
      <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('close_cash_register')): ?>
      <button type="button" id="close_register" title="<?php echo e(__('cash_register.close_register'), false); ?>" class="btn btn-danger btn-flat m-6 btn-xs m-5 btn-modal pull-right" data-container=".close_register_modal" 
          data-href="<?php echo e(action('CashRegisterController@getCloseRegister'), false); ?>">
            <strong><i class="fa fa-window-close fa-lg"></i></strong>
      </button>
      <?php endif; ?>
      
      <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_cash_register')): ?>
      <button type="button" id="register_details" title="<?php echo e(__('cash_register.register_details'), false); ?>" class="btn btn-success btn-flat m-6 btn-xs m-5 btn-modal pull-right" data-container=".register_details_modal" 
          data-href="<?php echo e(action('CashRegisterController@getRegisterDetails'), false); ?>">
            <strong><i class="fa fa-briefcase fa-lg" aria-hidden="true"></i></strong>
      </button>
      <?php endif; ?>

      <button title="<?php echo app('translator')->getFromJson('lang_v1.calculator'); ?>" id="btnCalculator" type="button" class="btn btn-success btn-flat pull-right m-5 btn-xs mt-10 popover-default" data-toggle="popover" data-trigger="click" data-content='<?php echo $__env->make("layouts.partials.calculator", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>' data-html="true" data-placement="bottom">
            <strong><i class="fa fa-calculator fa-lg" aria-hidden="true"></i></strong>
      </button>

      <!--<button type="button" class="btn btn-danger btn-flat m-6 btn-xs m-5 pull-right" id="return_sale" title="<?php echo app('translator')->getFromJson('lang_v1.sell_return'); ?>"  data-trigger="click" data-content='<div class="m-8"><input type="text" class="form-control" placeholder="<?php echo app('translator')->getFromJson("sale.invoice_no"); ?>" id="send_for_sell_return_invoice_no"></div><div class="w-100 text-center"><button type="button" class="btn btn-danger" id="send_for_sell_return"><?php echo app('translator')->getFromJson("lang_v1.send"); ?></button></div>' data-html="true" data-placement="bottom">
            <strong><i class="fas fa-undo fa-lg"></i></strong>
      </button>-->
      
      <!--data-toggle="popover"-->

      <button type="button" title="<?php echo e(__('lang_v1.full_screen'), false); ?>" class="btn btn-primary btn-flat m-6 hidden-xs btn-xs m-5 pull-right" id="full_screen">
            <strong><i class="fa fa-window-maximize fa-lg"></i></strong>
      </button>

      <button type="button" id="view_suspended_sales" title="<?php echo e(__('lang_v1.view_suspended_sales'), false); ?>" class="btn bg-yellow btn-flat m-6 btn-xs m-5 btn-modal pull-right" data-container=".view_modal" 
          data-href="<?php echo e($view_suspended_sell_url, false); ?>">
            <strong><i class="fa fa-pause-circle fa-lg"></i></strong>
      </button>
      <?php if(empty($pos_settings['hide_product_suggestion']) && isMobile()): ?>
        <button type="button" title="<?php echo e(__('lang_v1.view_products'), false); ?>"   
          data-placement="bottom" class="btn btn-success btn-flat m-6 btn-xs m-5 btn-modal pull-right" data-toggle="modal" data-target="#mobile_product_suggestion_modal">
            <strong><i class="fa fa-cubes fa-lg"></i></strong>
        </button>
      <?php endif; ?>

      <?php if(Module::has('Repair') && $transaction_sub_type != 'repair'): ?>
        <?php echo $__env->make('repair::layouts.partials.pos_header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
      <?php endif; ?>

        <?php if(in_array('pos_sale', $enabled_modules) && !empty($transaction_sub_type)): ?>
          <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sell.create')): ?>
            <a href="<?php echo e(action('SellPosController@create'), false); ?>" title="<?php echo app('translator')->getFromJson('sale.pos_sale'); ?>" class="btn btn-success btn-flat m-6 btn-xs m-5 pull-right">
              <strong><i class="fa fa-th-large"></i> &nbsp; <?php echo app('translator')->getFromJson('sale.pos_sale'); ?></strong>
            </a>
          <?php endif; ?>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('expense.add')): ?>
        <button type="button" title="<?php echo e(__('expense.add_expense'), false); ?>"   
          data-placement="bottom" class="btn bg-purple btn-flat m-6 btn-xs m-5 btn-modal pull-right" id="add_expense">
            <strong><i class="fa fas fa-minus-circle"></i> <?php echo app('translator')->getFromJson('expense.add_expense'); ?></strong>
        </button>
        <?php endif; ?>

    </div>
    
  </div>
</div>
<style>
    .style-input{
        border: none;
        background: transparent;
        width: 100%;
        text-align: center;
    }
</style>
  <style type="text/css">
.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {
    border: 1px solid #d2d6de;
    padding: 3px 3px;
    border-color: #11cf31;
    border-radius: 5px;
    background: #2dce89;
    height:30px;
    text-align: center;
    -webkit-text-fill-color: white;
}.cus_td{
    padding:3px 2px;
}.input-sm{
    border: 1px solid #d2d6de;
    padding: 3px 10px;
    border-color: #11cf31;
    border-radius: 5px;
}
input:focus
{
/*background-color:yellow;*/
font-weight:bold;
}
.btn-flat{
  padding: 4px 10px;
    border-radius: 5px;
    /*background: greenyellow;*/
}
select:focus
{
    font-weight:bold;
/*background-color:yellow;*/
}
  </style><?php /**PATH F:\xampp\htdocs\balaji-supermarket\resources\views/layouts/partials/header-pos.blade.php ENDPATH**/ ?>