Viewing file: 42d03f0ec6c1ae692c5a5cc7e03c73c8.php (16.13 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('brand_list')); ?>
<?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="container-fluid"> <div class="row"> <div class="col-md-8"> <div class="card"> <div class="card-header"> <h3 class="card-title" style="line-height: 36px;"><?php echo e(__('brand_list')); ?></h3> </div> <div class="p-4"> <div class="row"> <?php $__empty_1 = true; $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <div class="col-12 col-sm-6 col-md-4"> <div class="card card-margin"> <div class="card-body pt-0"> <div class="widget-49"> <div class="widget-49-title-wrapper mt-4 items-align-center"> <!--// image tag was --> <div class="widget-49-meeting-info"> <span class="text-capitalize text--xl"> <?php echo e($item->name); ?>
</span> <span class="widget-49-meeting-time -mt-5"> <?php echo e(date('M d, Y', strtotime($item->created_at))); ?>
</span> </div> </div> <div class="widget-49-meeting-action"> <?php if(userCan('brand.update')): ?> <a href="<?php echo e(route('module.brand.edit', $item->id)); ?>" class="btn btn-sm btn-outline-primary mr-1"> <i class="fas fa-edit"></i> </a> <?php endif; ?> <?php if(userCan('brand.delete')): ?> <form action="<?php echo e(route('module.brand.destroy', $item->id)); ?>" method="POST" class="d-inline mt-2"> <?php echo method_field('DELETE'); ?> <?php echo csrf_field(); ?> <button data-toggle="tooltip" data-placement="top" title="<?php echo e(__('delete_tag')); ?>" onclick="return confirm('Are you sure to delete this item?')" class="btn btn-sm btn-outline-danger"> <i class="fas fa-trash"></i> </button> </form> <?php endif; ?> </div> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <div class="col-12 text-center"> <?php if (isset($component)) { $__componentOriginal29785112a59eec7800237cc87bc86e3e = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal29785112a59eec7800237cc87bc86e3e = $attributes; } ?> <?php $component = App\View\Components\NotFound::resolve(['route' => '','word' => 'brand'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('not-found'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\NotFound::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal29785112a59eec7800237cc87bc86e3e)): ?> <?php $attributes = $__attributesOriginal29785112a59eec7800237cc87bc86e3e; ?> <?php unset($__attributesOriginal29785112a59eec7800237cc87bc86e3e); ?> <?php endif; ?> <?php if (isset($__componentOriginal29785112a59eec7800237cc87bc86e3e)): ?> <?php $component = $__componentOriginal29785112a59eec7800237cc87bc86e3e; ?> <?php unset($__componentOriginal29785112a59eec7800237cc87bc86e3e); ?> <?php endif; ?> </div> <?php endif; ?> </div> </div> <?php if($brands->total() > $brands->count()): ?> <div class="card-footer "> <div class="d-flex justify-content-center"> <?php echo e($brands->links()); ?>
</div> </div> <?php endif; ?> </div> </div> <div class="col-md-4"> <div class="card"> <div class="card-header"> <h3 class="card-title" style="line-height: 36px;"> <?php if(request()->routeIs('module.brand.edit')): ?> <span><?php echo e(__('edit_brand')); ?></span> <?php else: ?> <span><?php echo e(__('add_brand')); ?></span> <?php endif; ?> </h3> </div> <div class="card-body"> <?php if(request()->routeIs('module.brand.edit')): ?> <form class="form-horizontal" action="<?php echo e(route('module.brand.update', $brand->id)); ?>" method="POST"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="form-group row"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'name','required' => 'true','class' => 'col-sm-3'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <div class="col-sm-9"> <input value="<?php echo e($brand->name); ?>" name="name" type="text" class="form-control <?php echo e($errors->has('name') ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(__('enter_name')); ?>"> <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"> <strong><?php echo e($message); ?></strong> </span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div class="form-group row"> <div class="offset-sm-3 col-sm-12"> <button type="submit" class="btn btn-success"><i class="fas fa-sync"></i> <?php echo e(__('update')); ?></button> <a href="<?php echo e(route('module.brand.index')); ?>" class="btn btn-danger"><i class="fas fa-times"></i> <?php echo e(__('cancel')); ?></a> </div> </div> </form> <?php else: ?> <form class="form-horizontal" action="<?php echo e(route('module.brand.store')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="form-group row"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'name','required' => 'true','class' => 'col-sm-3'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <div class="col-sm-9"> <input value="<?php echo e(old('name')); ?>" name="name" type="text" class="form-control <?php echo e($errors->has('name') ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(__('name')); ?>"> <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"> <strong><?php echo e($message); ?></strong> </span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div class="form-group row"> <div class="offset-sm-3 col-sm-4"> <button type="submit" class="btn btn-success"><i class="fas fa-plus"></i> <?php echo e(__('create')); ?></button> </div> </div> </form> <?php endif; ?> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('style'); ?> <?php if (isset($component)) { $__componentOriginalab23c5cf28eaa91ea60ba8eb0512d9e1 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalab23c5cf28eaa91ea60ba8eb0512d9e1 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.simple-card-design','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.simple-card-design'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalab23c5cf28eaa91ea60ba8eb0512d9e1)): ?> <?php $attributes = $__attributesOriginalab23c5cf28eaa91ea60ba8eb0512d9e1; ?> <?php unset($__attributesOriginalab23c5cf28eaa91ea60ba8eb0512d9e1); ?> <?php endif; ?> <?php if (isset($__componentOriginalab23c5cf28eaa91ea60ba8eb0512d9e1)): ?> <?php $component = $__componentOriginalab23c5cf28eaa91ea60ba8eb0512d9e1; ?> <?php unset($__componentOriginalab23c5cf28eaa91ea60ba8eb0512d9e1); ?> <?php endif; ?> <style> .text--xl { font-size: 30px; margin: 0; }
.-mt-5 { margin-top: -5px; }
.text--xl { font-size: 1.5rem !important; } </style> <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\add listing 8-9-25\addListing\Modules/Brand\Resources/views/index.blade.php ENDPATH**/ ?>
|