PHP Classes

File: storage/framework/views/0d6f3af345bc463a66c557151cd2622ec5b84a6c.php

Recommend this page to a friend!
  Classes of Ali YILMAZ   Laravel 9 CRUD Example   storage/framework/views/0d6f3af345bc463a66c557151cd2622ec5b84a6c.php   Download  
File: storage/framework/views/0d6f3af345bc463a66c557151cd2622ec5b84a6c.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel 9 CRUD Example
Example of CRUD application using Laravel 9
Author: By
Last change:
Date: 1 year ago
Size: 2,827 bytes
 

Contents

Class file image Download
<?php $__env->startSection('content'); ?>

    <div class="row justify-content-center">
        <div class="col-lg-8 margin-tb">
            <div class="row">
                <div class="col-md-12">
                    <div class="text-start mt-5">
                        <h2>Edit Post</h2>
                    </div>
                </div>
            </div>
            <div class="col-md-12 text-end mt-4">
                <a class="btn btn-primary" href="<?php echo e(route('posts.index')); ?>">< Back</a>
            </div>
        </div>
    </div>

    <div class="row justify-content-center">
        <div class="col-lg-8 margin-tb">
            <?php if($errors->any()): ?>
<div class="alert alert-danger">
                    <strong>Whoops!</strong> There were some problems with your input.<br><br>
                    <ul>
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li><?php echo e($error); ?></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
                </div>
            <?php endif; ?>

            <form action="<?php echo e(route('posts.update',$post->id)); ?>" method="POST">
                <?php echo csrf_field(); ?>
<?php echo method_field('PUT'); ?>

                 <div class="row">

                    <div class="col-xs-12 col-sm-12 col-md-12">
                        <div class="form-group">
                            <strong>Title:</strong>
                            <input type="text" name="title" value="<?php echo e($post->title); ?>" class="form-control" placeholder="Title">
                        </div>
                    </div>

                    <div class="col-xs-12 col-sm-12 col-md-12">
                        <br>
                        <div class="form-group">
                            <strong>Body:</strong>
                            <textarea class="form-control" style="height:150px" name="body" placeholder="Body"><?php echo e($post->body); ?></textarea>
                        </div>
                    </div>

                    <div class="col-xs-12 col-sm-12 col-md-12 text-center mt-4">
                        <button type="submit" class="btn btn-success">Submit</button>
                    </div>
                </div>

            </form>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('post.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/XAMPP/xamppfiles/htdocs/example-app/resources/views/post/edit.blade.php ENDPATH**/ ?>