<?php $__env->startPush('style'); ?>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="row">
        <div class="col-md-8">
         <?php if($message = Session::get('success')): ?>
            <div class="alert alert-success alert-block">
                <button type="button" class="close" data-dismiss="alert">×</button>    
                <strong><?php echo e($message); ?></strong>
            </div>
          <?php endif; ?>
        <div class="card">  
            <div class="card-header">
                    <h5 class="title">Add Tag</h5>
                </div>
            <div class="card-body">
            <?php if($tag->id==''): ?>
             	<?php echo e(Form::open([ 'id'=>'tag'])); ?>

            	<?php echo e(csrf_field()); ?>

            	<?php echo method_field("POST"); ?>
            <?php else: ?>
            	 <form action="<?php echo e(route('updatetag',$tag->id)); ?>" method="post">
            	<?php echo csrf_field(); ?>
            	<?php echo method_field('patch'); ?>
            <?php endif; ?>
             <div class="form-group">
              <label for="">Tag</label>
              <?php echo e(Form::text('name',$tag->name,array('autocomplete' => 'off' ,'id' =>'name','class' => 'form-control','placeholder' => 'Enter Tag'))); ?>

            </div>
            <div class="form-group">
            <label>Status <span class="mandatory">*</span></label>
                            <div class="radiobutton">
                                <input type="radio" name="status" id="active" value="1" checked>
                                <label for="active">Active</label>
                                <input type="radio" name="status" id="inactive" value="0">
                                <label for="inactive">Inactive</label>
                            </div><!-- Radio Button -->
                        </div><!-- Field -->
           
            <div class="form-group" style="margin-top: 24px;">
              <input type="submit" class="btn btn-primary" value="Submit">
            </div>

          <?php echo e(Form::close()); ?>

          </div>
          </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', ['pageSlug' => 'tags'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\stimclexupdate\resources\views/tag/add.blade.php ENDPATH**/ ?>