<?php $__env->startSection('meta'); ?>
<title><?php echo e($page->title); ?></title>
<meta property="og:title" content="<?php echo e($page->title); ?>"/>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('contents'); ?>

<?php
    // বর্তমান ভাষা আইডি বের করো
    $language_id = Session::has('language')
        ? Session::get('language')
        : DB::table('languages')->where('is_default', '=', 1)->first()->id;

    // ঐ ভাষার পেজ বের করো (slug অনুযায়ী)
    $page = DB::table('pages')
        ->where('slug', $page->slug)
        ->where('language_id', $language_id)
        ->first();
?>

<?php if($page): ?>
<!-- main div -->
<div class="mainDiv">
<div class="bgWHite">
  <div class="container">
    <div class="row">
      <!-- header -->
      <div class="col-sm-12 col-md-12 marginB20 hidden-xs marginT10">
        <h1 class="desktopCategoryTitle"><span class="titleLeftDesign1"></span> <a href="<?php echo e(url()->current()); ?>"><strong><?php echo e($page->title); ?></strong></a></h1>
      </div>
      <div class="col-sm-12 col-md-12 paddingLR20 xs-paddingL15 marginB10 visible-xs paddingT10">
        <h1 class="sectionTitle displayInline border0 margin0 marginB0"><span class="titleLeftDesign1"></span> <a href="<?php echo e(url()->current()); ?>"><strong><?php echo e($page->title); ?></strong></a></h1>
      </div>

      <div class="col-sm-12 col-md-12">
        <div class="marginB20 textBody">
          <?php echo $page->description; ?>

        </div>
      </div>
    </div>
  </div>
</div>
</div>
<!-- main div end -->
<?php else: ?>
<!-- main div -->
<div class="mainDiv">
<div class="bgWHite">
  <div class="container">
    <div class="row">
      <div class="col-sm-12 col-md-12">
        <div class="text-center padding20 marginB30">
          <p class="colorBrand"><strong><?php echo e(__('No content available for this language')); ?></strong></p>
        </div>
      </div>
    </div>
  </div>
</div>
</div>
<!-- main div end -->
<?php endif; ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/istiakahmedsourav/Desktop/JAMUNABKP/project/resources/views/frontend/page.blade.php ENDPATH**/ ?>