

<?php $__env->startSection('title', trans('user.views.index.title')); ?>

<?php $__env->startSection('content'); ?>
<div class="tp-dashboard-head"><!-- page header -->
  <div class="container">
    <div class="row">
      <div class="col-md-12 profile-header">
        <div class="profile-pic col-md-2">
          <?php if($user->logo != null): ?>

          <img src="<?php echo e($user->logo_thumb); ?>" alt="" class="img-circle">
          <?php else: ?>
          <img src="<?php echo e(asset('images/couple-profile.jpg')); ?>" alt="" class="img-circle">
          <?php endif; ?>
        </div>
        <div class="profile-info col-md-9">
          <h1 class="profile-title"><?php echo e($user->name); ?><small>#</small></h1>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- /.page header -->
<div class="tp-dashboard-nav">
  <div class="container">
    <div class="row">
      <div class="col-md-12 dashboard-nav">
          <?php echo $__env->make('user._partials.navigation', ['_active_navigation' => 'profile.invitati'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
      </div>
    </div>
  </div>
</div>
<div class="main-container">
  <div class="container">
	<div class="row">
		<div class="col-md-3">
			<div class="filter-sidebar">
			  <div class="col-md-12 form-title">
				<h2>Filtre</h2>
			  </div>
			  <form method="POST" method="<?php echo e(route('user.profile.invitati.masa')); ?>"> 
			  <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
				<div class="col-md-12 form-group">
				  <label class="control-label" for="venuetype">Nr. masa</label>
				  <select id="nrTable" name="nrTable" class="form-control">
				  <option value="">Toate mesele</option>
						<?php for($i = 1; $i < 51; $i++): ?>
						<option value="<?php echo e($i); ?>" <?php if($i == @$nrTable): ?> selected <?php endif; ?>><?php echo e($i); ?></option>
						<?php endfor; ?>
				  </select>
				</div>
				<div class="col-md-12 form-group">
				  <button type="submit" class="btn btn-primary btn-block">Filtreaza</button>
				</div>
			  </form>
			</div>
		</div>
		<div class="col-md-9 my-listing-dashboard">   
		    <div class="row">	
            <?php echo $__env->make('user._partials.errors', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

            <?php echo Notification::showAll(); ?>			
                <div class="col-md-12 text-right">
				<a class="btn btn-primary" href="<?php echo e(route('user.profile.invitat.nou')); ?>"> + </a>
                </div>
            </div>
        	
		<div class="table-head">
          <div class="row">
            <div class="col-md-3">Nume</div>
            <div class="col-md-3">Prenume</div>
            <div class="col-md-2">Masa </div>
            <div class="col-md-4">#</div>
          </div>
        </div>  
		<?php foreach($weddingGuests as $weddingGuest): ?>
		<div class="listing-row">
		  <div class="row" id="manage_922">
			<div class="col-md-3 listing-title"><h2><?php echo e($weddingGuest->first_name); ?></h2></div>
			<div class="col-md-3 listing-title"><?php echo e($weddingGuest->last_name); ?></div>
			<div class="col-md-2 listing-price"><?php echo e($weddingGuest->table); ?></div>
			<div class="col-md-4 listing-action">
			<a class="btn btn-primary" href="<?php echo e(route('user.profile.invitat.edit', $weddingGuest->id_wg)); ?>">Editeaza</a> 
			<a class="btn btn-primary" href="<?php echo e(route('user.profile.invitat.delete', $weddingGuest->id_wg)); ?>">Sterge</a>
			</div>
		  </div>
		</div>
		<?php endforeach; ?>
		</div>

	</div>
	<?php echo $weddingGuests->render(); ?>

</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>