<style>
    .text-bg-primary {
    color: #fcf7f7 !important;
    background-color: RGBA(21, 163, 98, var(--bs-bg-opacity, 1)) !important;
}
</style>

<div class="row g-4 settings-section">
    <div class="col-12 col-md-3">
        <h3 class="section-title">Mi equipo</h3>
        <div class="section-intro">
           Edita la información del equipo
        </div>
    </div>

    <div class="col-12 col-md-9">
        <div class="app-card app-card-settings shadow-sm p-4">
            <div class="app-card-body">
                <form class="settings-form" method="post" action="<?php echo e(route('teamMe', $team->id)); ?>">
                    <?php echo method_field('put'); ?>
                    <?php echo csrf_field(); ?>
                    <div class="mb-3">
                        <label class="form-label">Nombre del equipo<span
                                class="ms-2" data-container="body"></label>
                        <input type="text" required class="form-control" name="name"
                            required  value="<?php echo e($team->name); ?>"
                             <?php if(Auth::user()->id !=$team->userOwner->id ): ?> readonly <?php endif; ?>  />
                    </div>

                    <div class="mb-3">
                        <?php if(Laravel\Jetstream\Jetstream::managesProfilePhotos()): ?>
                             <img class="rounded-circle" width="32" height="32" src="<?php echo e(Auth::user()->profile_photo_url); ?>"
                              alt="<?php echo e(Auth::user()->name); ?>" />
                        <?php else: ?>
                            <img class="rounded-circle" width="32" height="32" src="<?php echo e(Auth::user()->profile_photo_url); ?>"
                             alt="<?php echo e(Auth::user()->name); ?>" />
                        <?php endif; ?>
                        <label  > <strong>Propietario:</strong> <?php echo e($team->userOwner->name); ?></label> <br>
                   

                    </div>
                    <?php if(Auth::user()->id ==$team->userOwner->id ): ?>
                    <div class=" text-end">
                        <button type="submit" class="btn app-btn-primary">
                            <i class="fas fa-save"></i>
                        </button>
                     </div>
                    <?php endif; ?>

                </form>
            </div>
            <!--//app-card-body-->
        </div>
        <!--//app-card-->
    </div>
</div>
<?php /**PATH C:\laragon\www\sistema-contable-laravel\resources\views/me/team/team-edit.blade.php ENDPATH**/ ?>