KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/leadai/leadai.co.in/resources/views/teams/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/leadai/leadai.co.in/resources/views/teams/edit.blade.php
@extends('layout')
@section('content')
    <!-- begin::main content -->
    <style>
  /* Styles for tabs */
  .tab {
    display: inline-block;
    padding: 12px 26px;
    cursor: pointer;
    
    background-color: #E6EAED;
    margin-right: -4px; /* Remove spacing between tabs */
  }

  /* Style for highlighted tab */
  .tab.active {
    background-color: white;
  }

  /* Content area style */
  .tab-content {
    
    padding: 20px;
    border-radius: 0 0 5px 5px;
    display: none; /* Hide all content areas by default */
  }

  /* Show active content area */
  .tab-content.active {
    display: block;
  }
  .form-group {
    margin-bottom: 1rem;
    margin-bottom: 30px !important;
}
.form-group input, .form-group select{
    height:42px;
    padding-top:10px 25px !important;
}
.form-group label, .tab{
    font-size:13px !important;
}
.company-save-btn{
    position:fixed;
    bottom:0;left:250px;
    background-color:white;
    border-top:1px solid #ccc;
}
.inner-border{
    border:-2px solid #ddd !important;
}
@media only screen and (max-width: 768px) {
    .company-save-btn{
    position:fixed;
    bottom:0;left:0px;
    background-color:white;
    border-top:1px solid #ccc;
}
}
</style>

    <main class="main-content px-0">

        <div class="container">

            <!-- begin::page header -->
            <div class="page-header m-0 border-0">
                <h3> {{__('message.create')}} {{__('message.team')}}</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="{{ asset('dashboard') }}">{{__('message.dashboard')}}</a></li>
                        <li class="breadcrumb-item" aria-current="page"><a href="{{ asset('teams') }}">{{__('message.team')}}</a></li>
                        <li class="breadcrumb-item active" aria-current="page">{{__('message.add')}}</li>
                    </ol>
                </nav>
            </div>
            <!-- end::page header -->

            <div class="row py-5">
                <div class="col-md-12">

                    <x-flashMessage />
                    <div class="card border-0">
                        
                        <div class="card-body py-0 border">
                            <form action="{{ asset('edit-teams') }}" method="post">
                                <div class="row">
                                    <div class="col-md-6 py-3 pt-5">
                                        @csrf
                                        <input type="hidden" name="team_id" value="{{$team->id}}">
                                        <div class="form-group d-flex justify-content-between align-items-center ">
                                            <label for="team_name" class="col-md-4">{{__('message.team')}}  {{__('message.name')}}</label>
                                            <div class="col-md-8 px-0">
                                                <input type="text" class="form-control" name="team_name" id="team_name" value="{{$team->team_name}}">
                                                @if ($errors->has('name'))
                                                    <div class="error">
                                                        {{ $errors->first('name') }}
                                                    </div>
                                                @endif
                                            </div>
                                           

                                        </div>

                                        <div class="form-group d-flex justify-content-between align-items-center ">
                                            <label for="team_name" class="col-md-4">{{__('message.select')}}  {{__('message.team')}}</label>
                                            <div class="col-md-8 px-0">
                                                <select class="select select2 form-control" name="user_id[]" multiple>
                                                    @foreach($users as $user)
                                                        @php
                                                            // Check if the user is part of the team
                                                            $isSelected = isset($team->team_user) && $team->team_user->contains('user_id', $user->id);
                                                        @endphp
                                                        <option value="{{ $user->id }}" {{ $isSelected ? 'selected' : '' }}>
                                                            {{ $user->name }}
                                                        </option>
                                                    @endforeach
                                                </select>
                                                @if ($errors->has('user_id'))
                                                    <div class="error">
                                                        {{ $errors->first('user_id') }}
                                                    </div>
                                                @endif
                                            </div>
                                           

                                        </div>
                                       
                                       

                                       
                                        

                                        
                                        
                                        <div class="" >
                                        <div class="d-flex justify-content-end " >
                                            <button type="submit" class="btn btn-success-lux"><i class="fa fa-check"></i>&nbsp {{__('message.create')}}</button>
                                        </div>
                                    </div>
                                         
                                         
                                                                     
                                           
                                    </div>
                                    <div class="col-md-6 border-left px-0">
                                        
                                                                    
                                        
                                    </div>
                                    
                                </div>
                                

                                   
                                 
                                
                            </form>
                        </div>
                    </div>



                </div>

            </div>

        </div>

    </main>
    <!-- end::main content -->
@endsection
@push('footer-script')
    <!-- begin::select2 -->
    <link rel="stylesheet" href="{{ asset('public/admin/vendors/select2/css/select2.min.css') }}" type="text/css">
    <script src="{{ asset('public/admin/vendors/select2/js/select2.min.js') }}"></script>
    <!-- end::select2 -->
    <script>
       
        $(document).ready(function() {
            $('#js-example-basic-roles').select2({});
            $('select').select2({});

            //add contact btn
        

            

                    
            
    });
           




    </script>
@endpush

Anon7 - 2021