

<?php $__env->startSection('content'); ?>
<?php if(session('team_update_msg')): ?>
<div class="alert alert-success">
    <?php echo e(session('team_update_msg')); ?>

</div>
<?php endif; ?>
<h2 class="mb-3"><?php echo e(awtTrans('Edit Team')); ?></h2>
<div class="row mb-5">
    <div class="col-lg-12">
        <?php echo Form::model($team, ['method' => 'PATCH', 'route' => ['admin.teams.update', $team->id], 'files'=>true]); ?>

        <div class="row">
            <div class="form-group col-lg-12">
                <?php echo Form::label('name', awtTrans('الاسم')); ?>

                <?php echo Form::text('name', null, ['class' => ($errors->has('name')) ? 'form-control is-invalid' : 'form-control' , 'required' => 'required']); ?>

                <small class="text-danger"><?php echo e($errors->first('name')); ?></small>
            </div>

        </div>

        <div class="row">

            <div class="form-group col-lg-12">
                <?php echo Form::label('pio', awtTrans('Description')); ?>

                <?php echo Form::textarea('pio', null, [ 'class' => 'form-control tinyEditor' , 'required' => 'required']); ?>

                <small class="text-danger"><?php echo e($errors->first('pio')); ?></small>
            </div>
        </div>

        <div class="row">

            <div class="form-group col-lg-12">
                <?php echo Form::label('photo', awtTrans('الصورة')); ?>

                <div class="input-group">
                    <span class="input-group-btn">
                        <a id="lfm" data-input="photo" data-preview="holder" class="btn btn-secondary text-white px-4" style="border-top-right-radius: 0;border-bottom-right-radius: 0;border-top-left-radius: 0;border-bottom-left-radius: 0;">
                            <i class="fa fa-picture-o"></i> <?php echo e(awtTrans('اختر الصورة')); ?>

                        </a>
                    </span>
                    <?php echo Form::text('photo', null, ['class' => $errors->has('photo') ? 'form-control is-invalid' : 'form-control' , 'readonly' => 'readonly' , 'required' => 'required']); ?>

                </div>
                <div class="mb-3 mt-3 d-block slider-holder" id="holder">
                    <img width="100" src="<?php echo e($team->photo); ?>" alt="">
                </div>
                <small class="text-danger"><?php echo e($errors->first('photo')); ?></small>
            </div>
        </div>

        <div class="text-right float-right">
            <a href="<?php echo e(route('admin.teams.index')); ?>" class="btn btn-info px-4 mr-2"><?php echo e(awtTrans('الكل')); ?></a>
            <?php echo Form::submit(awtTrans('Update'), ['class' => 'btn btn-success']); ?>

        </div>
        <?php echo Form::close(); ?>


    </div>

</div>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\jaadara\Projects from 10-2022\Laravel-portfolio-website\resources\views/admin/teams/edit.blade.php ENDPATH**/ ?>