@extends('layouts.adminmaster')
							@section('content')

                            <!--Page header-->
							<div class="page-header d-xl-flex d-block">
								<div class="page-leftheader">
									<h4 class="page-title"><span class="font-weight-normal text-muted ms-2">{{lang('Envato')}}</span></h4>
								</div>
							</div>
							<!--End Page header-->

                            <div class="row">
                                <div class="col-xl-12 col-lg-12 col-md-12">
                                    <div class="card">
                                        <div class="card-header border-0">
                                            <h4 class="card-title">{{lang('Envato Settings')}}</h4>
                                        </div>
                                        <form action="{{route('admin.envatoapitoken.storeupdate')}}" method="POST" enctype="multipart/form-data">
                                            @csrf

                                            <input type="hidden" name="enavto_id" value="{{$apidata != null ? $apidata->id : ''}}">
                                            <div class="card-body">
                                                <div class="form-group">
                                                    <label  class="form-label">{{lang('Envato Personal Api Token')}}</label>
                                                    <input type="text"  class="form-control" name="envatoapi" value="{{$apidata != null ? $apidata->envatoapitoken : ''}}">
                                                </div>
                                                <div class="form-group mt-3">
                                                    <label  class="form-label">{{lang('Envato Personal second Api Token')}}</label>
                                                    <input type="text"  class="form-control" name="envatoapisecond" value="{{$apidata != null ? $apidata->envatoapitokensecond : ''}}">
                                                </div>
                                                <div class="form-group mt-3">
                                                    <label  class="form-label">{{lang('Envato Personal third Api Token')}}</label>
                                                    <input type="text"  class="form-control" name="envatoapithird" value="{{$apidata != null ? $apidata->envatoapitokenthird : ''}}">
                                                </div>
                                            </div>
                                            <div class="card-footer">
                                                <div class="form-group float-end">
                                                    <button type="submit" class="btn btn-secondary" onclick="this.disabled=true;this.innerHTML=`Saving <i class='fa fa-spinner fa-spin'></i>`;this.form.submit();">{{lang('Save')}}</button>
                                                </div>
                                            </div>
                                        </form>

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


                            @endsection
