<?php $__env->startSection('main-content'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            Edit Author
            <small>All * field required</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Forms</a></li>
            <li class="active">Advanced Elements</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">

        <!-- SELECT2 EXAMPLE -->
        <!-- form start -->

        <form name="editAuthor" id="editAuthor" method="post" enctype="multipart/form-data" action="/admin/author/<?php echo e($author->id); ?>">
            <?php echo csrf_field(); ?>
            <?php echo method_field('PUT'); ?>

            <div class="box box-primary">
                <!-- /.box-header -->
                <div class="box-body">
                    <!-- row start -->
                    <div class="row">
                        <div class="col-xs-6">

                            <div class="form-group">
                                <label for="fullname">Fullname <span class="text text-red">*</span></label>
                                <input type="text" name="fullname" value="<?php echo e($author->title); ?>" class="form-control" id="fullname">
                            </div>

                            <div class="form-group">
                                <label for="slug">Slug <span class="text text-red">*</span></label>
                                <input type="text" name="slug" value="<?php echo e($author->slug); ?>" class="form-control" id="slug" placeholder="Slug">
                            </div>
                            <div class="form-group">
                                <label for="designation">Designation <span class="text text-red">*</span></label>
                                <input type="text" name="designation" value="<?php echo e($author->designation); ?>" class="form-control" id="designation" placeholder="Designation">
                            </div>
                            <div class="form-group">
                                <label for="dob">Date of birth: <span class="text text-red">*</span></label>
                                <input type="date" name="dob" value="<?php echo e($author->dob); ?>" class="form-control" id="dob" placeholder="Date of Birth">
                            </div>
                            <div class="form-group">
                                <label>Country <span class="text text-red">*</span></label>
                                <select class="form-control select2" name="country" style="width: 100%;">
                                    <option value="none">Select Country</option>
                                    <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($country->name); ?>" <?php echo e(($country->name == $author->country) ? 'selected' : null); ?>><?php echo e($country->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>

                                

                            </div>

                            <!-- <div class="form-group">
                                <label for="email">Email <span class="text text-red">*</span></label>
                                <input type="email" class="form-control" id="email" placeholder="Email">
                            </div> -->
                            <!-- <div class="form-group">
                                <label>Country <span class="text text-red">*</span></label>
                                <select class="form-control select2" style="width: 100%;">
                                    <option selected="selected">Pakistan</option>
                                    <option>UAE</option>
                                    <option>China</option>
                                    <option>Japan</option>
                                </select>
                            </div> -->

                            <!-- <div class="form-group">
                                <label for="phone">Phone</label>
                                <input type="text" class="form-control" id="phone" placeholder="Phone">
                            </div>

                            <div class="form-group">
                                <label>Address</label>
                                <textarea class="form-control" rows="5" placeholder="Enter ..."></textarea>
                            </div> -->
                        </div>

                        <div class="col-xs-6">
                            <div class="form-group">
                                <label for="author_img">Author Image <span class="text text-red">*</span></label>
                                <input type="file" name="author_img" class="form-control" id="author_img" placeholder="Author Image">
                            </div>
                            <div class="form-group">
                                <label for="facebook_id">Facebook ID</label>
                                <input type="text" name="facebook_id" value="<?php echo e($author->facebook_id); ?>" class="form-control" id="facebook_id" placeholder="Facebook ID">
                            </div>

                            <div class="form-group">
                                <label for="twitter_id">Twitter ID</label>
                                <input type="text" name="twitter_id" value="<?php echo e($author->twitter_id); ?>" class="form-control" id="twitter_id" placeholder="Twitter ID">
                            </div>

                            <div class="form-group">
                                <label for="youtube_id">YouTube ID</label>
                                <input type="text" name="youtube_id" value="<?php echo e($author->youtube_id); ?>" class="form-control" id="youtube_id" placeholder="YouTube ID">
                            </div>
                            <div class="form-group">
                                <label for="pinterest">Pinterest ID</label>
                                <input type="text" name="pinterest_id" value="<?php echo e($author->pinterest_id); ?>" class="form-control" id="pinterest" placeholder="Pinterest ID">
                            </div>
                        </div>
                    </div>

                    <!-- row end -->

                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <button type="submit" class="btn btn-primary">Submit</button>
                    <button type="submit" class="btn btn-danger">Cancel</button>
                </div>
            </div>
            <!-- /.box -->
        </form>
        <!-- form end -->

    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\mustafalaravel\resources\views/admin/author/edit.blade.php ENDPATH**/ ?>