100 lines
3.8 KiB
PHP
100 lines
3.8 KiB
PHP
{{DB::error()}}
|
|
|
|
<div class="card">
|
|
<div class="card-header bg-primary ">
|
|
<h5 class="card-title text-white">İndirme Düzenleme Formu</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<form action="#" method="post" class="form-vertical">
|
|
<div class="mb-3">
|
|
<label class="control-label">TITLE :</label>
|
|
<input type="text" name="name" class="form-control" value="{{downloadEdit($id)->name}}">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="control-label">CONTENT :</label>
|
|
<textarea name="content" id="editor" rows="20" class="form-control">{{downloadEdit($id)->content}}</textarea>
|
|
<script>
|
|
CKEDITOR.replace('editor', {
|
|
height: 500,
|
|
filebrowserBrowseUrl : '/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',
|
|
filebrowserUploadUrl : '/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',
|
|
filebrowserImageBrowseUrl : '/filemanager/dialog.php?type=1&editor=ckeditor&fldr='
|
|
});
|
|
</script>
|
|
</div>
|
|
|
|
<div class='download' id="download">
|
|
<button class="btn btn-primary add" type="button" style="margin-left: 5px; ">+ Yeni download linki ekle</button>
|
|
{[$a=0]}
|
|
@foreach(downloadUrlAdmin($id) as $key)
|
|
{[$a++]}
|
|
<div class="mb-3">
|
|
<div class="row">
|
|
|
|
|
|
<label class="control-label">LINK{{$a}} :</label>
|
|
<select name="downlink[{{$a}}][]" required class="span2">
|
|
<option value="">Selected Countries</option>
|
|
@foreach(countries() as $key1)
|
|
<option value="{{$key1->id}}" {{selected($key1->id,$key->country)}}>{{$key1->name}}</option>
|
|
@endforeach
|
|
</select>
|
|
|
|
<input type="text" name="downlink[{{$a}}][]" class="span8" required placeholder="link" value="{{$key->link}}">
|
|
<button type="button" class="btn btn-danger downlinkDelete" data-id="{{$key->id}}">
|
|
<i class="fa fa-trash"></i>
|
|
</button>
|
|
|
|
@if ($key->status == 1)
|
|
<button type="button" class="btn btn-success downlinkstatus" data-id="{{$key->id}}" data-status="{{$key->status}}">
|
|
<i class="fa fa-check" ></i>
|
|
</button>
|
|
@else
|
|
<button type="button" class="btn btn-danger downlinkstatus" data-id="{{$key->id}}" data-status="{{$key->status}}">
|
|
<i class="fas fa-times"></i>
|
|
</button>
|
|
@endif
|
|
|
|
<input type="hidden" name="downlink[{{$a}}][]" value="{{$key->count}}">
|
|
<input type="hidden" name="downlink[{{$a}}][]" value="{{$key->status}}">
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
|
|
|
|
<div class="mb-3">
|
|
<label class="control-label">SUMX :</label>
|
|
<div class="controls">
|
|
{[ $sum = explode(',',downloadEdit($id)->sumx); ]}
|
|
<input type="text" name="sumx[]" class="form-control" placeholder="MD5SUM" value="{{$sum['0']}}">
|
|
<input type="text" name="sumx[]" class="form-control" placeholder="SHA1SUM" value="{{$sum['1']}}" style="margin-top: 5px;">
|
|
<input type="text" name="sumx[]" class="form-control" placeholder="SHA256SUM" value="{{$sum['2']}}" style="margin-top: 5px;">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="mb-3">
|
|
<label class="control-label">LANGUAGE :</label>
|
|
<select name="lang" id="" class="form-control" required>
|
|
<option value="">Select Language</option>
|
|
@foreach (languageList() as $key):
|
|
<option value="{{$key->slug}}" {[selected($key->slug,downloadEdit($id)->lang)]}>{{$key->language}}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="id" value="{{$id}}">
|
|
<input type="hidden" id="sayac" name="sayac" value="{{$a}}">
|
|
<button type="submit" class="btn btn-success btn-block">UPDATE</button>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|