<?php $__env->startSection('title','Brands'); ?>
<?php $__env->startSection('content'); ?>
<div class="page-head"><div><h1>Brands</h1><p>Bilingual brand dictionary used for products and translation suggestions.</p></div></div><div class="row g-2"><div class="col-lg-4"><form method="POST" action="<?php echo e(route('brands.store')); ?>" class="card-erp"><?php echo csrf_field(); ?><div class="card-erp-header">New brand</div><div class="card-erp-body"><label class="form-label">Code</label><input name="code" class="form-control mb-2"><label class="form-label">English name</label><input name="name_en" class="form-control mb-2" required><label class="form-label">Arabic name</label><input name="name_ar" class="form-control mb-2" dir="rtl" required><label class="form-label">Description</label><textarea name="description" class="form-control mb-2"></textarea><label class="form-label">Status</label><select name="status" class="form-select mb-3"><option>active</option><option>inactive</option></select><button class="btn btn-primary w-100">Create brand</button></div></form></div><div class="col-lg-8"><div class="card-erp"><div class="table-responsive"><table class="table table-dense"><thead><tr><th>Code</th><th>Brand</th><th>Arabic</th><th>Status</th><th>Quick edit</th></tr></thead><tbody><?php $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $b): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><form method="POST" action="<?php echo e(route('brands.update',$b)); ?>"><?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?><td><input name="code" class="form-control" value="<?php echo e($b->code); ?>"></td><td><input name="name_en" class="form-control" value="<?php echo e($b->name_en); ?>" required></td><td><input name="name_ar" class="form-control" dir="rtl" value="<?php echo e($b->name_ar); ?>" required></td><td><select name="status" class="form-select"><option <?php if($b->status==='active'): echo 'selected'; endif; ?>>active</option><option <?php if($b->status==='inactive'): echo 'selected'; endif; ?>>inactive</option></select><input type="hidden" name="description" value="<?php echo e($b->description); ?>"></td><td><button class="btn btn-light border btn-dense">Save</button></td></form></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div></div></div></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\saudi\resources\views\brands\index.blade.php ENDPATH**/ ?>