<?php if (isset($component)) { $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\AppLayout::class, []); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
    <?php echo $__env->make('admin.include.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <div class="container-fluid">

            <button type="button" id="sidebarCollapse" class="btn btn-danger">
                <i class="fas fa-align-left"></i>
            </button>
            <button class="btn btn-dark d-inline-block d-lg-none ml-auto" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <i class="fas fa-align-justify"></i>
            </button>
            <?php if(session()->has('success')): ?>
                <div class="alert alert-success mb-0 alert-dismissible fade show" role="alert">
                   <?php echo e(session()->get('success')); ?>

                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <?php endif; ?>
                <?php if(session()->has('error')): ?>
                <div class="alert alert-danger mb-0 alert-dismissible fade show" role="alert">
                   <?php echo e(session()->get('error')); ?>

                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <?php endif; ?>
                <a class="btn btn-warning" href='<?php echo e(route("carsmodel.create")); ?>'>Add New Brand</a>

        </div>
    </nav>
    <!-- Page Content  -->
    <div class="wrapper">
       <!-- Sidebar  -->
       <!-- Page Content  -->
       <div id="content">
          
          <div class="navbar-expand-lg navbar-light bg-light">
             <form action="<?php echo e(route('carsmodel.update',$location->id)); ?>" method="POST" enctype="multipart/form-data">
                <?php echo method_field('PATCH'); ?>
                <?php echo csrf_field(); ?>
                <div class="col-12">
                  <div class="row">
                    <div class="col-md-4 form-group">
                       <label>Name</label>
                       <input type="text" class="form-control" value="<?php echo e($location->name); ?>" name="name">
                    </div>
                    <div class="col-md-4 form-group">
                        <label>Logo</label>
                        <input type="file" class="form-control" id="" name="logo">
                     </div>
                    <div class="col-4">
                       <label>Status</label>
                       <select name="status" class="form-control" required>
                        <option value="1" <?php echo e($location->status == 1 ? 'selected':''); ?>>Active</option>
                        <option value="0" <?php echo e($location->status == 0 ? 'selected':''); ?>>Inactive</option>
                     </select>
                    </div>
                     <div class="col-md-12">
                        <input type="submit" class="btn btn-success" value="submit">
                     </div>
                  </div>
               </div>
             </form>
          </div>
       </div>
    </div>
   <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da)): ?>
<?php $component = $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da; ?>
<?php unset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da); ?>
<?php endif; ?><?php /**PATH /home/isoftco/public_html/zedostar/resources/views/admin/carsmodel/edit.blade.php ENDPATH**/ ?>