added categories and news api
This commit is contained in:
parent
99a9844ef2
commit
9a7ec436d4
|
|
@ -0,0 +1,88 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Admin;
|
||||||
|
|
||||||
|
use App\Http\Requests\NewsRequest;
|
||||||
|
use Backpack\CRUD\app\Http\Controllers\CrudController;
|
||||||
|
use Backpack\CRUD\app\Library\CrudPanel\CrudPanelFacade as CRUD;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class NewsCrudController
|
||||||
|
* @package App\Http\Controllers\Admin
|
||||||
|
* @property-read \Backpack\CRUD\app\Library\CrudPanel\CrudPanel $crud
|
||||||
|
*/
|
||||||
|
class NewsCrudController extends CrudController
|
||||||
|
{
|
||||||
|
use \Backpack\CRUD\app\Http\Controllers\Operations\ListOperation;
|
||||||
|
use \Backpack\CRUD\app\Http\Controllers\Operations\CreateOperation;
|
||||||
|
use \Backpack\CRUD\app\Http\Controllers\Operations\UpdateOperation;
|
||||||
|
use \Backpack\CRUD\app\Http\Controllers\Operations\DeleteOperation;
|
||||||
|
use \Backpack\CRUD\app\Http\Controllers\Operations\ShowOperation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configure the CrudPanel object. Apply settings to all operations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setup()
|
||||||
|
{
|
||||||
|
CRUD::setModel(\App\Models\News::class);
|
||||||
|
CRUD::setRoute(config('backpack.base.route_prefix') . '/news');
|
||||||
|
CRUD::setEntityNameStrings('news', 'news');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Define what happens when the List operation is loaded.
|
||||||
|
*
|
||||||
|
* @see https://backpackforlaravel.com/docs/crud-operation-list-entries
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
protected function setupListOperation()
|
||||||
|
{
|
||||||
|
CRUD::column('title');
|
||||||
|
CRUD::column('short_description');
|
||||||
|
CRUD::column('description');
|
||||||
|
CRUD::column('image')->type('image');
|
||||||
|
CRUD::column('date');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Columns can be defined using the fluent syntax or array syntax:
|
||||||
|
* - CRUD::column('price')->type('number');
|
||||||
|
* - CRUD::addColumn(['name' => 'price', 'type' => 'number']);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Define what happens when the Create operation is loaded.
|
||||||
|
*
|
||||||
|
* @see https://backpackforlaravel.com/docs/crud-operation-create
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
protected function setupCreateOperation()
|
||||||
|
{
|
||||||
|
CRUD::setValidation(NewsRequest::class);
|
||||||
|
|
||||||
|
CRUD::field('title');
|
||||||
|
CRUD::field('short_description');
|
||||||
|
CRUD::field('description');
|
||||||
|
CRUD::field('image')->type('image');
|
||||||
|
CRUD::field('date');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fields can be defined using the fluent syntax or array syntax:
|
||||||
|
* - CRUD::field('price')->type('number');
|
||||||
|
* - CRUD::addField(['name' => 'price', 'type' => 'number']));
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Define what happens when the Update operation is loaded.
|
||||||
|
*
|
||||||
|
* @see https://backpackforlaravel.com/docs/crud-operation-update
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
protected function setupUpdateOperation()
|
||||||
|
{
|
||||||
|
$this->setupCreateOperation();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -5,6 +5,7 @@ namespace App\Http\Controllers\Api;
|
||||||
use League\Fractal\Manager;
|
use League\Fractal\Manager;
|
||||||
use League\Fractal\Resource\Item;
|
use League\Fractal\Resource\Item;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
use League\Fractal\Resource\Collection;
|
use League\Fractal\Resource\Collection;
|
||||||
use League\Fractal\Pagination\IlluminatePaginatorAdapter;
|
use League\Fractal\Pagination\IlluminatePaginatorAdapter;
|
||||||
|
|
||||||
|
|
@ -26,11 +27,13 @@ class ApiController extends Controller
|
||||||
* @var Manager $fractal
|
* @var Manager $fractal
|
||||||
*/
|
*/
|
||||||
protected $fractal;
|
protected $fractal;
|
||||||
|
public $locale;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct(Request $request)
|
||||||
{
|
{
|
||||||
$this->fractal = new Manager;
|
$this->fractal = new Manager;
|
||||||
|
|
||||||
|
$this->locale = $request->header('X-Localization') ?? 'tk';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Api;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Api\ApiController;
|
||||||
|
use App\Models\Category;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use App\Http\Resources\CategoryResource;
|
||||||
|
use App\Transformers\CategoryTransformer;
|
||||||
|
|
||||||
|
class CategoryController extends ApiController
|
||||||
|
{
|
||||||
|
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$categories = Category::orderBy('lft', 'desc')->get();
|
||||||
|
return $this->respondWithCollection($categories, new CategoryTransformer($this->locale));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Api;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Api\ApiController;
|
||||||
|
use App\Models\News;
|
||||||
|
use App\Http\Requests\StoreNewsRequest;
|
||||||
|
use App\Http\Requests\UpdateNewsRequest;
|
||||||
|
use App\Transformers\NewsTransformer;
|
||||||
|
|
||||||
|
class NewsController extends ApiController
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$news = News::orderBy('date', 'desc')->paginate(9);
|
||||||
|
return $this->respondWithPaginator($news, new NewsTransformer($this->locale));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -7,8 +7,6 @@ use App\Models\Trading;
|
||||||
use App\Transformers\TradingTransformer;
|
use App\Transformers\TradingTransformer;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
use function PHPUnit\Framework\isEmpty;
|
|
||||||
|
|
||||||
class TradingsController extends ApiController
|
class TradingsController extends ApiController
|
||||||
{
|
{
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
|
@ -41,8 +39,6 @@ class TradingsController extends ApiController
|
||||||
$tradings = Trading::hydrate($tradings);
|
$tradings = Trading::hydrate($tradings);
|
||||||
|
|
||||||
return $this->respondWithCollection($tradings, new TradingTransformer);
|
return $this->respondWithCollection($tradings, new TradingTransformer);
|
||||||
dd($tradings);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPercentageDifference($new, $old){
|
function getPercentageDifference($new, $old){
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,86 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\News;
|
||||||
|
use App\Http\Requests\StoreNewsRequest;
|
||||||
|
use App\Http\Requests\UpdateNewsRequest;
|
||||||
|
|
||||||
|
class NewsController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for creating a new resource.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Store a newly created resource in storage.
|
||||||
|
*
|
||||||
|
* @param \App\Http\Requests\StoreNewsRequest $request
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function store(StoreNewsRequest $request)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the specified resource.
|
||||||
|
*
|
||||||
|
* @param \App\Models\News $news
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function show(News $news)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for editing the specified resource.
|
||||||
|
*
|
||||||
|
* @param \App\Models\News $news
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function edit(News $news)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the specified resource in storage.
|
||||||
|
*
|
||||||
|
* @param \App\Http\Requests\UpdateNewsRequest $request
|
||||||
|
* @param \App\Models\News $news
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function update(UpdateNewsRequest $request, News $news)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the specified resource from storage.
|
||||||
|
*
|
||||||
|
* @param \App\Models\News $news
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function destroy(News $news)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Requests;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
||||||
|
class NewsRequest extends FormRequest
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Determine if the user is authorized to make this request.
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function authorize()
|
||||||
|
{
|
||||||
|
// only allow updates if the user is logged in
|
||||||
|
return backpack_auth()->check();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the validation rules that apply to the request.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function rules()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
// 'name' => 'required|min:5|max:255'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the validation attributes that apply to the request.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function attributes()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the validation messages that apply to the request.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function messages()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Requests;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
||||||
|
class StoreNewsRequest extends FormRequest
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Determine if the user is authorized to make this request.
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function authorize()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the validation rules that apply to the request.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function rules()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Requests;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
||||||
|
class UpdateNewsRequest extends FormRequest
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Determine if the user is authorized to make this request.
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function authorize()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the validation rules that apply to the request.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function rules()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,77 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Backpack\CRUD\app\Models\Traits\SpatieTranslatable\HasTranslations;
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
use Intervention\Image\ImageManagerStatic as Image;
|
||||||
|
|
||||||
|
class News extends Model
|
||||||
|
{
|
||||||
|
use \Backpack\CRUD\app\Models\Traits\CrudTrait;
|
||||||
|
use HasFactory;
|
||||||
|
use HasTranslations;
|
||||||
|
|
||||||
|
protected $guarded = [''];
|
||||||
|
public $translatable = ['title', 'short_description', 'description'];
|
||||||
|
|
||||||
|
public static function boot()
|
||||||
|
{
|
||||||
|
parent::boot();
|
||||||
|
static::deleted(function($obj) {
|
||||||
|
\Storage::disk('public_folder')->delete($obj->image);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setImageAttribute($value)
|
||||||
|
{
|
||||||
|
$attribute_name = "image";
|
||||||
|
// or use your own disk, defined in config/filesystems.php
|
||||||
|
$disk = config('backpack.base.root_disk_name');
|
||||||
|
// destination path relative to the disk above
|
||||||
|
$destination_path = "public/uploads/news";
|
||||||
|
|
||||||
|
// if the image was erased
|
||||||
|
if (empty($value)) {
|
||||||
|
// delete the image from disk
|
||||||
|
if (isset($this->{$attribute_name}) && !empty($this->{$attribute_name})) {
|
||||||
|
\Storage::disk($disk)->delete($this->{$attribute_name});
|
||||||
|
}
|
||||||
|
// set null on database column
|
||||||
|
$this->attributes[$attribute_name] = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// if a base64 was sent, store it in the db
|
||||||
|
if (Str::startsWith($value, 'data:image'))
|
||||||
|
{
|
||||||
|
// 0. Make the image
|
||||||
|
$image = \Image::make($value)->encode('jpg', 90);
|
||||||
|
|
||||||
|
// 1. Generate a filename.
|
||||||
|
$filename = md5($value.time()).'.jpg';
|
||||||
|
|
||||||
|
// 2. Store the image on disk.
|
||||||
|
\Storage::disk($disk)->put($destination_path.'/'.$filename, $image->stream());
|
||||||
|
|
||||||
|
// 3. Delete the previous image, if there was one.
|
||||||
|
if (isset($this->{$attribute_name}) && !empty($this->{$attribute_name})) {
|
||||||
|
\Storage::disk($disk)->delete($this->{$attribute_name});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 4. Save the public path to the database
|
||||||
|
// but first, remove "public/" from the path, since we're pointing to it
|
||||||
|
// from the root folder; that way, what gets saved in the db
|
||||||
|
// is the public URL (everything that comes after the domain name)
|
||||||
|
$public_destination_path = Str::replaceFirst('public/', '', $destination_path);
|
||||||
|
$this->attributes[$attribute_name] = $public_destination_path.'/'.$filename;
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
// crop image to 300x300
|
||||||
|
} elseif (!empty($value)) {
|
||||||
|
// if value isn't empty, but it's not an image, assume it's the model value for that attribute.
|
||||||
|
$this->attributes[$attribute_name] = $this->{$attribute_name};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,94 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Policies;
|
||||||
|
|
||||||
|
use App\Models\News;
|
||||||
|
use App\Models\User;
|
||||||
|
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||||
|
|
||||||
|
class NewsPolicy
|
||||||
|
{
|
||||||
|
use HandlesAuthorization;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine whether the user can view any models.
|
||||||
|
*
|
||||||
|
* @param \App\Models\User $user
|
||||||
|
* @return \Illuminate\Auth\Access\Response|bool
|
||||||
|
*/
|
||||||
|
public function viewAny(User $user)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine whether the user can view the model.
|
||||||
|
*
|
||||||
|
* @param \App\Models\User $user
|
||||||
|
* @param \App\Models\News $news
|
||||||
|
* @return \Illuminate\Auth\Access\Response|bool
|
||||||
|
*/
|
||||||
|
public function view(User $user, News $news)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine whether the user can create models.
|
||||||
|
*
|
||||||
|
* @param \App\Models\User $user
|
||||||
|
* @return \Illuminate\Auth\Access\Response|bool
|
||||||
|
*/
|
||||||
|
public function create(User $user)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine whether the user can update the model.
|
||||||
|
*
|
||||||
|
* @param \App\Models\User $user
|
||||||
|
* @param \App\Models\News $news
|
||||||
|
* @return \Illuminate\Auth\Access\Response|bool
|
||||||
|
*/
|
||||||
|
public function update(User $user, News $news)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine whether the user can delete the model.
|
||||||
|
*
|
||||||
|
* @param \App\Models\User $user
|
||||||
|
* @param \App\Models\News $news
|
||||||
|
* @return \Illuminate\Auth\Access\Response|bool
|
||||||
|
*/
|
||||||
|
public function delete(User $user, News $news)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine whether the user can restore the model.
|
||||||
|
*
|
||||||
|
* @param \App\Models\User $user
|
||||||
|
* @param \App\Models\News $news
|
||||||
|
* @return \Illuminate\Auth\Access\Response|bool
|
||||||
|
*/
|
||||||
|
public function restore(User $user, News $news)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine whether the user can permanently delete the model.
|
||||||
|
*
|
||||||
|
* @param \App\Models\User $user
|
||||||
|
* @param \App\Models\News $news
|
||||||
|
* @return \Illuminate\Auth\Access\Response|bool
|
||||||
|
*/
|
||||||
|
public function forceDelete(User $user, News $news)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Transformers;
|
||||||
|
|
||||||
|
use App\Models\Category;
|
||||||
|
use League\Fractal\TransformerAbstract;
|
||||||
|
|
||||||
|
class CategoryTransformer extends TransformerAbstract
|
||||||
|
{
|
||||||
|
private $locale;
|
||||||
|
|
||||||
|
public function __construct($locale)
|
||||||
|
{
|
||||||
|
$this->locale = $locale;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function transform(Category $category)
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'id' => $category->id,
|
||||||
|
'title' => $category->getTranslations('title', [$this->locale]),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Transformers;
|
||||||
|
|
||||||
|
use App\Models\News;
|
||||||
|
use League\Fractal\TransformerAbstract;
|
||||||
|
|
||||||
|
class NewsTransformer extends TransformerAbstract
|
||||||
|
{
|
||||||
|
private $locale;
|
||||||
|
|
||||||
|
public function __construct($locale)
|
||||||
|
{
|
||||||
|
$this->locale = $locale;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function transform(News $news)
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'id' => $news->id,
|
||||||
|
'title' => $news->getTranslations('title', [$this->locale]),
|
||||||
|
'short_description' => $news->getTranslations('short_description', [$this->locale]),
|
||||||
|
'description' => $news->getTranslations('description', [$this->locale]),
|
||||||
|
'date' => $news->date,
|
||||||
|
'image' => url($news->image),
|
||||||
|
'locale' => $this->locale,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -114,6 +114,7 @@
|
||||||
'command.config.cache' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.config.cache' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'command.config.clear' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.config.clear' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'Illuminate\\Database\\Console\\DbCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'Illuminate\\Database\\Console\\DbCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
|
'command.db.prune' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'command.db.wipe' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.db.wipe' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'command.down' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.down' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'command.environment' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.environment' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
|
|
@ -129,7 +130,9 @@
|
||||||
'command.queue.flush' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.queue.flush' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'command.queue.forget' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.queue.forget' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'command.queue.listen' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.queue.listen' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
|
'command.queue.monitor' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'command.queue.prune-batches' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.queue.prune-batches' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
|
'command.queue.prune-failed-jobs' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'command.queue.restart' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.queue.restart' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'command.queue.retry' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.queue.retry' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'command.queue.retry-batch' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.queue.retry-batch' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
|
|
@ -142,6 +145,7 @@
|
||||||
'Illuminate\\Console\\Scheduling\\ScheduleFinishCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'Illuminate\\Console\\Scheduling\\ScheduleFinishCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'Illuminate\\Console\\Scheduling\\ScheduleListCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'Illuminate\\Console\\Scheduling\\ScheduleListCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'Illuminate\\Console\\Scheduling\\ScheduleRunCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'Illuminate\\Console\\Scheduling\\ScheduleRunCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
|
'Illuminate\\Console\\Scheduling\\ScheduleClearCacheCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'Illuminate\\Console\\Scheduling\\ScheduleTestCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'Illuminate\\Console\\Scheduling\\ScheduleTestCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'Illuminate\\Console\\Scheduling\\ScheduleWorkCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'Illuminate\\Console\\Scheduling\\ScheduleWorkCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
'command.storage.link' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
'command.storage.link' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -95,7 +95,7 @@ return [
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'fallback_locale' => 'en',
|
'fallback_locale' => 'tk',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -108,7 +108,7 @@ return [
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'faker_locale' => 'en_US',
|
'faker_locale' => 'tk_TK',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,5 @@ return [
|
||||||
/*
|
/*
|
||||||
* If a translation has not been set for a given locale, use this locale instead.
|
* If a translation has not been set for a given locale, use this locale instead.
|
||||||
*/
|
*/
|
||||||
'fallback_locale' => 'tm',
|
'fallback_locale' => 'tk',
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Factories;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
|
class NewsFactory extends Factory
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Define the model's default state.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function definition()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateNewsTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('news', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->text('title');
|
||||||
|
$table->text('short_description');
|
||||||
|
$table->text('description');
|
||||||
|
$table->text('image');
|
||||||
|
$table->date('date');
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('news');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateNewsTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('news', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('news');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
|
class NewsSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function run()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 402 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 192 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 238 KiB |
|
|
@ -2,4 +2,5 @@
|
||||||
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('dashboard') }}"><i class="la la-home nav-icon"></i> {{ trans('backpack::base.dashboard') }}</a></li>
|
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('dashboard') }}"><i class="la la-home nav-icon"></i> {{ trans('backpack::base.dashboard') }}</a></li>
|
||||||
|
|
||||||
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('category') }}"><i class="nav-icon la la-question"></i> Categories</a></li>
|
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('category') }}"><i class="nav-icon la la-question"></i> Categories</a></li>
|
||||||
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('trading') }}"><i class="nav-icon la la-question"></i> Tradings</a></li>
|
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('trading') }}"><i class="nav-icon la la-question"></i> Tradings</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('news') }}"><i class="nav-icon la la-question"></i> News</a></li>
|
||||||
|
|
@ -7,6 +7,8 @@ use App\Http\Controllers\Api\FiltersController;
|
||||||
use App\Http\Controllers\Api\ImportController;
|
use App\Http\Controllers\Api\ImportController;
|
||||||
use App\Http\Controllers\Api\RequestController;
|
use App\Http\Controllers\Api\RequestController;
|
||||||
use App\Http\Controllers\Api\TradingsController;
|
use App\Http\Controllers\Api\TradingsController;
|
||||||
|
use App\Http\Controllers\Api\NewsController;
|
||||||
|
use App\Http\Controllers\Api\CategoryController;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -26,4 +28,6 @@ Route::get('categories', [FiltersController::class, 'categories']);
|
||||||
Route::get('other-filters', [FiltersController::class, 'otherFilters']);
|
Route::get('other-filters', [FiltersController::class, 'otherFilters']);
|
||||||
|
|
||||||
|
|
||||||
|
Route::get('categories', [CategoryController::class, 'index']);
|
||||||
Route::get('tradings', [TradingsController::class, 'index']);
|
Route::get('tradings', [TradingsController::class, 'index']);
|
||||||
|
Route::get('news', [NewsController::class, 'index']);
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,5 @@ Route::group([
|
||||||
], function () { // custom admin routes
|
], function () { // custom admin routes
|
||||||
Route::crud('category', 'CategoryCrudController');
|
Route::crud('category', 'CategoryCrudController');
|
||||||
Route::crud('trading', 'TradingCrudController');
|
Route::crud('trading', 'TradingCrudController');
|
||||||
|
Route::crud('news', 'NewsCrudController');
|
||||||
}); // this should be the absolute last line of this file
|
}); // this should be the absolute last line of this file
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
a:5:{s:6:"_token";s:40:"KwWSECrELeCMOoLG40FMcHyFrXOZbujGRZR8G3fZ";s:9:"_previous";a:1:{s:3:"url";s:32:"http://127.0.0.1:8000/admin/news";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:3:"url";a:0:{}s:55:"login_backpack_59ba36addc2b2f9401580f014c7f58ea4e30989d";i:11;}
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
a:7:{s:6:"_token";s:40:"VVRFrqJTpNJEG37pgqFGV4c95RgOiQeSVJuZ9tA0";s:50:"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d";i:11;s:17:"password_hash_web";s:60:"$2y$10$Bch.bwnG.bVAqx988uQ0guKtrzZnnluwv7tnOS9RjWTU2RRJMPrai";s:9:"_previous";a:1:{s:3:"url";s:35:"http://127.0.0.1:8000/admin/trading";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:3:"url";a:0:{}s:55:"login_backpack_59ba36addc2b2f9401580f014c7f58ea4e30989d";i:11;}
|
|
||||||
|
|
@ -1,56 +0,0 @@
|
||||||
<?php
|
|
||||||
$title = 'Error '.$error_number;
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php $__env->startSection('after_styles'); ?>
|
|
||||||
<style>
|
|
||||||
.error_number {
|
|
||||||
font-size: 156px;
|
|
||||||
font-weight: 600;
|
|
||||||
line-height: 100px;
|
|
||||||
}
|
|
||||||
.error_number small {
|
|
||||||
font-size: 56px;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
.error_number hr {
|
|
||||||
margin-top: 60px;
|
|
||||||
margin-bottom: 0;
|
|
||||||
width: 50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.error_title {
|
|
||||||
margin-top: 40px;
|
|
||||||
font-size: 36px;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
|
|
||||||
.error_description {
|
|
||||||
font-size: 24px;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
|
|
||||||
<?php $__env->startSection('content'); ?>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12 text-center">
|
|
||||||
<div class="error_number">
|
|
||||||
<small>ERROR</small><br>
|
|
||||||
<?php echo e($error_number); ?>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
<div class="error_title text-muted">
|
|
||||||
<?php echo $__env->yieldContent('title'); ?>
|
|
||||||
</div>
|
|
||||||
<div class="error_description text-muted">
|
|
||||||
<small>
|
|
||||||
<?php echo $__env->yieldContent('description'); ?>
|
|
||||||
</small>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
<?php echo $__env->make(backpack_user() && (Str::startsWith(\Request::path(), config('backpack.base.route_prefix'))) ? 'backpack::layouts.top_left' : 'backpack::layouts.plain', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\exchange\resources\views/errors/layout.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
<?php $attributes = $attributes->exceptProps(['id' => null, 'maxWidth' => null]); ?>
|
|
||||||
<?php foreach (array_filter((['id' => null, 'maxWidth' => null]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
||||||
$$__key = $$__key ?? $__value;
|
|
||||||
} ?>
|
|
||||||
<?php $__defined_vars = get_defined_vars(); ?>
|
|
||||||
<?php foreach ($attributes as $__key => $__value) {
|
|
||||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
||||||
} ?>
|
|
||||||
<?php unset($__defined_vars); ?>
|
|
||||||
|
|
||||||
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
||||||
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.modal','data' => ['id' => $id,'maxWidth' => $maxWidth,'attributes' => $attributes]]); ?>
|
|
||||||
<?php $component->withName('jet-modal'); ?>
|
|
||||||
<?php if ($component->shouldRender()): ?>
|
|
||||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
||||||
<?php $component->withAttributes(['id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($id),'maxWidth' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($maxWidth),'attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attributes)]); ?>
|
|
||||||
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
|
|
||||||
<div class="sm:flex sm:items-start">
|
|
||||||
<div class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10">
|
|
||||||
<svg class="h-6 w-6 text-red-600" stroke="currentColor" fill="none" viewBox="0 0 24 24">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
|
||||||
<h3 class="text-lg">
|
|
||||||
<?php echo e($title); ?>
|
|
||||||
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<div class="mt-2">
|
|
||||||
<?php echo e($content); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="px-6 py-4 bg-gray-100 text-right">
|
|
||||||
<?php echo e($footer); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
||||||
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
||||||
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderComponent(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/confirmation-modal.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
<?php $attributes = $attributes->exceptProps(['style' => session('flash.bannerStyle', 'success'), 'message' => session('flash.banner')]); ?>
|
|
||||||
<?php foreach (array_filter((['style' => session('flash.bannerStyle', 'success'), 'message' => session('flash.banner')]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
||||||
$$__key = $$__key ?? $__value;
|
|
||||||
} ?>
|
|
||||||
<?php $__defined_vars = get_defined_vars(); ?>
|
|
||||||
<?php foreach ($attributes as $__key => $__value) {
|
|
||||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
||||||
} ?>
|
|
||||||
<?php unset($__defined_vars); ?>
|
|
||||||
|
|
||||||
<div x-data="<?php echo e(json_encode(['show' => true, 'style' => $style, 'message' => $message])); ?>"
|
|
||||||
:class="{ 'bg-indigo-500': style == 'success', 'bg-red-700': style == 'danger' }"
|
|
||||||
style="display: none;"
|
|
||||||
x-show="show && message"
|
|
||||||
x-init="
|
|
||||||
document.addEventListener('banner-message', event => {
|
|
||||||
style = event.detail.style;
|
|
||||||
message = event.detail.message;
|
|
||||||
show = true;
|
|
||||||
});
|
|
||||||
">
|
|
||||||
<div class="max-w-screen-xl mx-auto py-2 px-3 sm:px-6 lg:px-8">
|
|
||||||
<div class="flex items-center justify-between flex-wrap">
|
|
||||||
<div class="w-0 flex-1 flex items-center min-w-0">
|
|
||||||
<span class="flex p-2 rounded-lg" :class="{ 'bg-indigo-600': style == 'success', 'bg-red-600': style == 'danger' }">
|
|
||||||
<svg class="h-5 w-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<p class="ml-3 font-medium text-sm text-white truncate" x-text="message"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex-shrink-0 sm:ml-3">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="-mr-1 flex p-2 rounded-md focus:outline-none sm:-mr-2 transition"
|
|
||||||
:class="{ 'hover:bg-indigo-600 focus:bg-indigo-600': style == 'success', 'hover:bg-red-600 focus:bg-red-600': style == 'danger' }"
|
|
||||||
aria-label="Dismiss"
|
|
||||||
x-on:click="show = false">
|
|
||||||
<svg class="h-5 w-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/banner.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,73 +0,0 @@
|
||||||
<?php
|
|
||||||
$defaultBreadcrumbs = [
|
|
||||||
trans('backpack::crud.admin') => backpack_url('dashboard'),
|
|
||||||
$crud->entity_name_plural => url($crud->route),
|
|
||||||
trans('backpack::crud.edit') => false,
|
|
||||||
];
|
|
||||||
|
|
||||||
// if breadcrumbs aren't defined in the CrudController, use the default breadcrumbs
|
|
||||||
$breadcrumbs = $breadcrumbs ?? $defaultBreadcrumbs;
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php $__env->startSection('header'); ?>
|
|
||||||
<section class="container-fluid">
|
|
||||||
<h2>
|
|
||||||
<span class="text-capitalize"><?php echo $crud->getHeading() ?? $crud->entity_name_plural; ?></span>
|
|
||||||
<small><?php echo $crud->getSubheading() ?? trans('backpack::crud.edit').' '.$crud->entity_name; ?>.</small>
|
|
||||||
|
|
||||||
<?php if($crud->hasAccess('list')): ?>
|
|
||||||
<small><a href="<?php echo e(url($crud->route)); ?>" class="d-print-none font-sm"><i class="la la-angle-double-<?php echo e(config('backpack.base.html_direction') == 'rtl' ? 'right' : 'left'); ?>"></i> <?php echo e(trans('backpack::crud.back_to_all')); ?> <span><?php echo e($crud->entity_name_plural); ?></span></a></small>
|
|
||||||
<?php endif; ?>
|
|
||||||
</h2>
|
|
||||||
</section>
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
|
|
||||||
<?php $__env->startSection('content'); ?>
|
|
||||||
<div class="row">
|
|
||||||
<div class="<?php echo e($crud->getEditContentClass()); ?>">
|
|
||||||
|
|
||||||
|
|
||||||
<?php echo $__env->make('crud::inc.grouped_errors', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
|
|
||||||
<form method="post"
|
|
||||||
action="<?php echo e(url($crud->route.'/'.$entry->getKey())); ?>"
|
|
||||||
<?php if($crud->hasUploadFields('update', $entry->getKey())): ?>
|
|
||||||
enctype="multipart/form-data"
|
|
||||||
<?php endif; ?>
|
|
||||||
>
|
|
||||||
<?php echo csrf_field(); ?>
|
|
||||||
|
|
||||||
<?php echo method_field('PUT'); ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($crud->model->translationEnabled()): ?>
|
|
||||||
<div class="mb-2 text-right">
|
|
||||||
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<?php echo e(trans('backpack::crud.language')); ?>: <?php echo e($crud->model->getAvailableLocales()[request()->input('_locale')?request()->input('_locale'):App::getLocale()]); ?> <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<?php $__currentLoopData = $crud->model->getAvailableLocales(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $locale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<a class="dropdown-item" href="<?php echo e(url($crud->route.'/'.$entry->getKey().'/edit')); ?>?_locale=<?php echo e($key); ?>"><?php echo e($locale); ?></a>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if(view()->exists('vendor.backpack.crud.form_content')): ?>
|
|
||||||
<?php echo $__env->make('vendor.backpack.crud.form_content', ['fields' => $crud->fields(), 'action' => 'edit'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
<?php else: ?>
|
|
||||||
<?php echo $__env->make('crud::form_content', ['fields' => $crud->fields(), 'action' => 'edit'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<div class="d-none" id="parentLoadedAssets"><?php echo e(json_encode(Assets::loaded())); ?></div>
|
|
||||||
<?php echo $__env->make('crud::inc.form_save_buttons', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php echo $__env->make(backpack_view('blank'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/edit.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<?php
|
|
||||||
$field['attributes'] = $field['attributes'] ?? [];
|
|
||||||
$field['attributes']['class'] = $field['attributes']['class'] ?? $default_class ?? 'form-control';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php $__currentLoopData = $field['attributes']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attribute => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php if(is_string($attribute)): ?>
|
|
||||||
<?php echo e($attribute); ?>="<?php echo e($value); ?>"
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/fields/inc/attributes.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
<?php if($paginator->hasPages()): ?>
|
|
||||||
<nav>
|
|
||||||
<ul class="pagination">
|
|
||||||
|
|
||||||
<?php if($paginator->onFirstPage()): ?>
|
|
||||||
<li class="disabled" aria-disabled="true" aria-label="<?php echo app('translator')->get('pagination.previous'); ?>">
|
|
||||||
<span aria-hidden="true">‹</span>
|
|
||||||
</li>
|
|
||||||
<?php else: ?>
|
|
||||||
<li>
|
|
||||||
<a href="<?php echo e($paginator->previousPageUrl()); ?>" rel="prev" aria-label="<?php echo app('translator')->get('pagination.previous'); ?>">‹</a>
|
|
||||||
</li>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
|
|
||||||
<?php if(is_string($element)): ?>
|
|
||||||
<li class="disabled" aria-disabled="true"><span><?php echo e($element); ?></span></li>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if(is_array($element)): ?>
|
|
||||||
<?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php if($page == $paginator->currentPage()): ?>
|
|
||||||
<li class="active" aria-current="page"><span><?php echo e($page); ?></span></li>
|
|
||||||
<?php else: ?>
|
|
||||||
<li><a href="<?php echo e($url); ?>"><?php echo e($page); ?></a></li>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($paginator->hasMorePages()): ?>
|
|
||||||
<li>
|
|
||||||
<a href="<?php echo e($paginator->nextPageUrl()); ?>" rel="next" aria-label="<?php echo app('translator')->get('pagination.next'); ?>">›</a>
|
|
||||||
</li>
|
|
||||||
<?php else: ?>
|
|
||||||
<li class="disabled" aria-disabled="true" aria-label="<?php echo app('translator')->get('pagination.next'); ?>">
|
|
||||||
<span aria-hidden="true">›</span>
|
|
||||||
</li>
|
|
||||||
<?php endif; ?>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/framework/src/Illuminate/Pagination/resources/views/default.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
<?php
|
|
||||||
$field['wrapper'] = $field['wrapper'] ?? $field['wrapperAttributes'] ?? [];
|
|
||||||
|
|
||||||
// each wrapper attribute can be a callback or a string
|
|
||||||
// for those that are callbacks, run the callbacks to get the final string to use
|
|
||||||
foreach($field['wrapper'] as $attributeKey => $value) {
|
|
||||||
$field['wrapper'][$attributeKey] = !is_string($value) && $value instanceof \Closure ? $value($crud, $field, $entry ?? null) : $value ?? '';
|
|
||||||
}
|
|
||||||
// if the field is required in any of the crud validators (FormRequest, controller validation or field validation)
|
|
||||||
// we add an astherisc for it. Case it's a subfield, that check is done upstream in repeatable_row.
|
|
||||||
// the reason for that is that here the field name is already the repeatable name: parent[row][fieldName]
|
|
||||||
if(!isset($field['parentFieldName']) || !$field['parentFieldName']) {
|
|
||||||
$fieldName = is_array($field['name']) ? current($field['name']) : $field['name'];
|
|
||||||
$required = (isset($action) && $crud->isRequired($fieldName)) ? ' required' : '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// if the developer has intentionally set the required attribute on the field
|
|
||||||
// forget whatever is in the FormRequest, do what the developer wants
|
|
||||||
// subfields also get here with `showAsterisk` already set.
|
|
||||||
$required = isset($field['showAsterisk']) ? ($field['showAsterisk'] ? ' required' : '') : ($required ?? '');
|
|
||||||
|
|
||||||
$field['wrapper']['class'] = $field['wrapper']['class'] ?? "form-group col-sm-12";
|
|
||||||
$field['wrapper']['class'] = $field['wrapper']['class'].$required;
|
|
||||||
$field['wrapper']['element'] = $field['wrapper']['element'] ?? 'div';
|
|
||||||
$field['wrapper']['bp-field-wrapper'] = 'true';
|
|
||||||
$field['wrapper']['bp-field-name'] = square_brackets_to_dots(implode(',', (array)$field['name']));
|
|
||||||
$field['wrapper']['bp-field-type'] = $field['type'];
|
|
||||||
?>
|
|
||||||
|
|
||||||
<<?php echo e($field['wrapper']['element']); ?>
|
|
||||||
|
|
||||||
<?php $__currentLoopData = $field['wrapper']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attribute => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php echo e($attribute); ?>="<?php echo e($value); ?>"
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
>
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/fields/inc/wrapper_start.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
|
|
||||||
<?php
|
|
||||||
$column['attribute'] = $column['attribute'] ?? (new $column['model'])->identifiableAttribute();
|
|
||||||
$column['value'] = $column['value'] ?? $crud->getRelatedEntriesAttributes($entry, $column['entity'], $column['attribute']);
|
|
||||||
$column['escaped'] = $column['escaped'] ?? true;
|
|
||||||
$column['prefix'] = $column['prefix'] ?? '';
|
|
||||||
$column['suffix'] = $column['suffix'] ?? '';
|
|
||||||
$column['limit'] = $column['limit'] ?? 32;
|
|
||||||
|
|
||||||
if($column['value'] instanceof \Closure) {
|
|
||||||
$column['value'] = $column['value']($entry);
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($column['value'] as &$value) {
|
|
||||||
$value = Str::limit($value, $column['limit'], '…');
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<span>
|
|
||||||
<?php if(count($column['value'])): ?>
|
|
||||||
<?php echo e($column['prefix']); ?>
|
|
||||||
|
|
||||||
<?php $__currentLoopData = $column['value']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $text): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php
|
|
||||||
$related_key = $key;
|
|
||||||
?>
|
|
||||||
|
|
||||||
<span class="d-inline-flex">
|
|
||||||
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_start', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
|
||||||
<?php if($column['escaped']): ?>
|
|
||||||
<?php echo e($text); ?>
|
|
||||||
|
|
||||||
<?php else: ?>
|
|
||||||
<?php echo $text; ?>
|
|
||||||
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
|
||||||
|
|
||||||
<?php if(!$loop->last): ?>, <?php endif; ?>
|
|
||||||
</span>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php echo e($column['suffix']); ?>
|
|
||||||
|
|
||||||
<?php else: ?>
|
|
||||||
<?php echo e($column['default'] ?? '-'); ?>
|
|
||||||
|
|
||||||
<?php endif; ?>
|
|
||||||
</span>
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/columns/select.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -19,10 +19,10 @@
|
||||||
<?php $__env->stopSection(); ?>
|
<?php $__env->stopSection(); ?>
|
||||||
|
|
||||||
<?php $__env->startSection('content'); ?>
|
<?php $__env->startSection('content'); ?>
|
||||||
|
<!-- Default box -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
|
<!-- THE ACTUAL CONTENT -->
|
||||||
<div class="<?php echo e($crud->getListContentClass()); ?>">
|
<div class="<?php echo e($crud->getListContentClass()); ?>">
|
||||||
|
|
||||||
<div class="row mb-0">
|
<div class="row mb-0">
|
||||||
|
|
@ -45,13 +45,7 @@
|
||||||
<?php echo $__env->make('crud::inc.filters_navbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
<?php echo $__env->make('crud::inc.filters_navbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<table
|
<table id="crudTable" class="bg-white table table-striped table-hover nowrap rounded shadow-xs border-xs mt-2" cellspacing="0">
|
||||||
id="crudTable"
|
|
||||||
class="bg-white table table-striped table-hover nowrap rounded shadow-xs border-xs mt-2"
|
|
||||||
data-responsive-table="<?php echo e((int) $crud->getOperationSetting('responsiveTable')); ?>"
|
|
||||||
data-has-details-row="<?php echo e((int) $crud->getOperationSetting('detailsRow')); ?>"
|
|
||||||
data-has-bulk-actions="<?php echo e((int) $crud->getOperationSetting('bulkActions')); ?>"
|
|
||||||
cellspacing="0">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
|
|
@ -59,8 +53,7 @@
|
||||||
<th
|
<th
|
||||||
data-orderable="<?php echo e(var_export($column['orderable'], true)); ?>"
|
data-orderable="<?php echo e(var_export($column['orderable'], true)); ?>"
|
||||||
data-priority="<?php echo e($column['priority']); ?>"
|
data-priority="<?php echo e($column['priority']); ?>"
|
||||||
data-column-name="<?php echo e($column['name']); ?>"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php if(isset($column['exportOnlyField']) && $column['exportOnlyField'] === true): ?>
|
<?php if(isset($column['exportOnlyField']) && $column['exportOnlyField'] === true): ?>
|
||||||
|
|
@ -89,11 +82,6 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
>
|
>
|
||||||
|
|
||||||
<?php if($loop->first && $crud->getOperationSetting('bulkActions')): ?>
|
|
||||||
<?php echo View::make('crud::columns.inc.bulk_actions_checkbox')->render(); ?>
|
|
||||||
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $column['label']; ?>
|
<?php echo $column['label']; ?>
|
||||||
|
|
||||||
</th>
|
</th>
|
||||||
|
|
@ -113,15 +101,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<?php $__currentLoopData = $crud->columns(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $column): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
<?php $__currentLoopData = $crud->columns(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $column): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||||
<th>
|
<th><?php echo $column['label']; ?></th>
|
||||||
|
|
||||||
<?php if($loop->first && $crud->getOperationSetting('bulkActions')): ?>
|
|
||||||
<?php echo View::make('crud::columns.inc.bulk_actions_checkbox')->render(); ?>
|
|
||||||
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $column['label']; ?>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||||
|
|
||||||
<?php if( $crud->buttons()->where('stack', 'line')->count() ): ?>
|
<?php if( $crud->buttons()->where('stack', 'line')->count() ): ?>
|
||||||
|
|
@ -146,20 +126,27 @@
|
||||||
<?php $__env->stopSection(); ?>
|
<?php $__env->stopSection(); ?>
|
||||||
|
|
||||||
<?php $__env->startSection('after_styles'); ?>
|
<?php $__env->startSection('after_styles'); ?>
|
||||||
|
<!-- DATA TABLES -->
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('packages/datatables.net-bs4/css/dataTables.bootstrap4.min.css')); ?>">
|
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('packages/datatables.net-bs4/css/dataTables.bootstrap4.min.css')); ?>">
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('packages/datatables.net-fixedheader-bs4/css/fixedHeader.bootstrap4.min.css')); ?>">
|
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('packages/datatables.net-fixedheader-bs4/css/fixedHeader.bootstrap4.min.css')); ?>">
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('packages/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css')); ?>">
|
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('packages/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css')); ?>">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="<?php echo e(asset('packages/backpack/crud/css/crud.css').'?v='.config('backpack.base.cachebusting_string')); ?>">
|
||||||
|
<link rel="stylesheet" href="<?php echo e(asset('packages/backpack/crud/css/form.css').'?v='.config('backpack.base.cachebusting_string')); ?>">
|
||||||
|
<link rel="stylesheet" href="<?php echo e(asset('packages/backpack/crud/css/list.css').'?v='.config('backpack.base.cachebusting_string')); ?>">
|
||||||
|
|
||||||
|
<!-- CRUD LIST CONTENT - crud_list_styles stack -->
|
||||||
<?php echo $__env->yieldPushContent('crud_list_styles'); ?>
|
<?php echo $__env->yieldPushContent('crud_list_styles'); ?>
|
||||||
<?php $__env->stopSection(); ?>
|
<?php $__env->stopSection(); ?>
|
||||||
|
|
||||||
<?php $__env->startSection('after_scripts'); ?>
|
<?php $__env->startSection('after_scripts'); ?>
|
||||||
<?php echo $__env->make('crud::inc.datatables_logic', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
<?php echo $__env->make('crud::inc.datatables_logic', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
||||||
|
<script src="<?php echo e(asset('packages/backpack/crud/js/crud.js').'?v='.config('backpack.base.cachebusting_string')); ?>"></script>
|
||||||
|
<script src="<?php echo e(asset('packages/backpack/crud/js/form.js').'?v='.config('backpack.base.cachebusting_string')); ?>"></script>
|
||||||
|
<script src="<?php echo e(asset('packages/backpack/crud/js/list.js').'?v='.config('backpack.base.cachebusting_string')); ?>"></script>
|
||||||
|
|
||||||
|
<!-- CRUD LIST CONTENT - crud_list_scripts stack -->
|
||||||
<?php echo $__env->yieldPushContent('crud_list_scripts'); ?>
|
<?php echo $__env->yieldPushContent('crud_list_scripts'); ?>
|
||||||
<?php $__env->stopSection(); ?>
|
<?php $__env->stopSection(); ?>
|
||||||
|
|
||||||
<?php echo $__env->make(backpack_view('blank'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/list.blade.php ENDPATH**/ ?>
|
<?php echo $__env->make(backpack_view('blank'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/list.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
<?php if(backpack_auth()->check()): ?>
|
<?php if(backpack_auth()->check()): ?>
|
||||||
|
<!-- Left side column. contains the sidebar -->
|
||||||
<div class="<?php echo e(config('backpack.base.sidebar_class')); ?>">
|
<div class="<?php echo e(config('backpack.base.sidebar_class')); ?>">
|
||||||
|
<!-- sidebar: style can be found in sidebar.less -->
|
||||||
<nav class="sidebar-nav overflow-hidden">
|
<nav class="sidebar-nav overflow-hidden">
|
||||||
|
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
|
<!-- <li class="nav-title"><?php echo e(trans('backpack::base.administration')); ?></li> -->
|
||||||
|
<!-- ================================================ -->
|
||||||
|
<!-- ==== Recommended place for admin menu items ==== -->
|
||||||
|
<!-- ================================================ -->
|
||||||
|
|
||||||
<?php echo $__env->make(backpack_view('inc.sidebar_content'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
<?php echo $__env->make(backpack_view('inc.sidebar_content'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
||||||
|
|
||||||
|
<!-- ======================================= -->
|
||||||
|
<!-- <li class="divider"></li> -->
|
||||||
|
<!-- <li class="nav-title">Entries</li> -->
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
<!-- /.sidebar -->
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
@ -92,4 +92,4 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php $__env->stopPush(); ?>
|
<?php $__env->stopPush(); ?>
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/sidebar.blade.php ENDPATH**/ ?>
|
<?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/sidebar.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
|
|
||||||
<?php
|
|
||||||
$current_value = old_empty_or_null($field['name'], '') ?? $field['value'] ?? $field['default'] ?? '';
|
|
||||||
$entity_model = $crud->getRelationModel($field['entity'], - 1);
|
|
||||||
$field['allows_null'] = $field['allows_null'] ?? $entity_model::isColumnNullable($field['name']);
|
|
||||||
|
|
||||||
//if it's part of a relationship here we have the full related model, we want the key.
|
|
||||||
if (is_object($current_value) && is_subclass_of(get_class($current_value), 'Illuminate\Database\Eloquent\Model') ) {
|
|
||||||
$current_value = $current_value->getKey();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset($field['options'])) {
|
|
||||||
$options = $field['model']::all();
|
|
||||||
} else {
|
|
||||||
$options = call_user_func($field['options'], $field['model']::query());
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php echo $__env->make('crud::fields.inc.wrapper_start', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
|
|
||||||
<label><?php echo $field['label']; ?></label>
|
|
||||||
<?php echo $__env->make('crud::fields.inc.translatable_icon', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
|
|
||||||
<select
|
|
||||||
name="<?php echo e($field['name']); ?>"
|
|
||||||
<?php echo $__env->make('crud::fields.inc.attributes', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
>
|
|
||||||
|
|
||||||
<?php if($field['allows_null']): ?>
|
|
||||||
<option value="">-</option>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if(count($options)): ?>
|
|
||||||
<?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $connected_entity_entry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php if($current_value == $connected_entity_entry->getKey()): ?>
|
|
||||||
<option value="<?php echo e($connected_entity_entry->getKey()); ?>" selected><?php echo e($connected_entity_entry->{$field['attribute']}); ?></option>
|
|
||||||
<?php else: ?>
|
|
||||||
<option value="<?php echo e($connected_entity_entry->getKey()); ?>"><?php echo e($connected_entity_entry->{$field['attribute']}); ?></option>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if(isset($field['hint'])): ?>
|
|
||||||
<p class="help-block"><?php echo $field['hint']; ?></p>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php echo $__env->make('crud::fields.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/fields/select.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<?php $__env->startSection('title', __('Not Found')); ?>
|
|
||||||
<?php $__env->startSection('code', '404'); ?>
|
|
||||||
<?php $__env->startSection('message', __('Not Found')); ?>
|
|
||||||
|
|
||||||
<?php echo $__env->make('errors::minimal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\OpenServer\domains\exchange\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions/views/404.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,18 +1,13 @@
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$column['value'] = $column['value'] ?? data_get($entry, $column['name']);
|
$value = data_get($entry, $column['name']);
|
||||||
|
$value = is_array($value) ? json_encode($value) : $value;
|
||||||
|
|
||||||
$column['escaped'] = $column['escaped'] ?? true;
|
$column['escaped'] = $column['escaped'] ?? true;
|
||||||
|
$column['limit'] = $column['limit'] ?? 40;
|
||||||
$column['prefix'] = $column['prefix'] ?? '';
|
$column['prefix'] = $column['prefix'] ?? '';
|
||||||
$column['suffix'] = $column['suffix'] ?? '';
|
$column['suffix'] = $column['suffix'] ?? '';
|
||||||
$column['text'] = $column['default'] ?? '-';
|
$column['text'] = $column['prefix'].Str::limit($value ?? '', $column['limit'], '[...]').$column['suffix'];
|
||||||
|
|
||||||
if($column['value'] instanceof \Closure) {
|
|
||||||
$column['value'] = $column['value']($entry);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!empty($column['value'])) {
|
|
||||||
$column['text'] = $column['prefix'].$column['value'].$column['suffix'];
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
|
|
@ -26,4 +21,4 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
||||||
</span>
|
</span>
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/columns/textarea.blade.php ENDPATH**/ ?>
|
<?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/columns/text.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1,45 +0,0 @@
|
||||||
<?php $attributes = $attributes->exceptProps(['submit']); ?>
|
|
||||||
<?php foreach (array_filter((['submit']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
||||||
$$__key = $$__key ?? $__value;
|
|
||||||
} ?>
|
|
||||||
<?php $__defined_vars = get_defined_vars(); ?>
|
|
||||||
<?php foreach ($attributes as $__key => $__value) {
|
|
||||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
||||||
} ?>
|
|
||||||
<?php unset($__defined_vars); ?>
|
|
||||||
|
|
||||||
<div <?php echo e($attributes->merge(['class' => 'md:grid md:grid-cols-3 md:gap-6'])); ?>>
|
|
||||||
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
||||||
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.section-title','data' => []]); ?>
|
|
||||||
<?php $component->withName('jet-section-title'); ?>
|
|
||||||
<?php if ($component->shouldRender()): ?>
|
|
||||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
||||||
<?php $component->withAttributes([]); ?>
|
|
||||||
<?php $__env->slot('title'); ?> <?php echo e($title); ?> <?php $__env->endSlot(); ?>
|
|
||||||
<?php $__env->slot('description'); ?> <?php echo e($description); ?> <?php $__env->endSlot(); ?>
|
|
||||||
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
||||||
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
||||||
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderComponent(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<div class="mt-5 md:mt-0 md:col-span-2">
|
|
||||||
<form wire:submit.prevent="<?php echo e($submit); ?>">
|
|
||||||
<div class="px-4 py-5 bg-white sm:p-6 shadow <?php echo e(isset($actions) ? 'sm:rounded-tl-md sm:rounded-tr-md' : 'sm:rounded-md'); ?>">
|
|
||||||
<div class="grid grid-cols-6 gap-6">
|
|
||||||
<?php echo e($form); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php if(isset($actions)): ?>
|
|
||||||
<div class="flex items-center justify-end px-4 py-3 bg-gray-50 text-right sm:px-6 shadow sm:rounded-bl-md sm:rounded-br-md">
|
|
||||||
<?php echo e($actions); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/form-section.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
<div class="md:grid md:grid-cols-3 md:gap-6" <?php echo e($attributes); ?>>
|
|
||||||
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
||||||
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.section-title','data' => []]); ?>
|
|
||||||
<?php $component->withName('jet-section-title'); ?>
|
|
||||||
<?php if ($component->shouldRender()): ?>
|
|
||||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
||||||
<?php $component->withAttributes([]); ?>
|
|
||||||
<?php $__env->slot('title'); ?> <?php echo e($title); ?> <?php $__env->endSlot(); ?>
|
|
||||||
<?php $__env->slot('description'); ?> <?php echo e($description); ?> <?php $__env->endSlot(); ?>
|
|
||||||
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
||||||
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
||||||
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderComponent(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<div class="mt-5 md:mt-0 md:col-span-2">
|
|
||||||
<div class="px-4 py-5 sm:p-6 bg-white shadow sm:rounded-lg">
|
|
||||||
<?php echo e($content); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/action-section.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,91 +0,0 @@
|
||||||
<?php
|
|
||||||
$defaultBreadcrumbs = [
|
|
||||||
trans('backpack::crud.admin') => url(config('backpack.base.route_prefix'), 'dashboard'),
|
|
||||||
$crud->entity_name_plural => url($crud->route),
|
|
||||||
trans('backpack::crud.preview') => false,
|
|
||||||
];
|
|
||||||
|
|
||||||
// if breadcrumbs aren't defined in the CrudController, use the default breadcrumbs
|
|
||||||
$breadcrumbs = $breadcrumbs ?? $defaultBreadcrumbs;
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php $__env->startSection('header'); ?>
|
|
||||||
<section class="container-fluid d-print-none">
|
|
||||||
<a href="javascript: window.print();" class="btn float-right"><i class="la la-print"></i></a>
|
|
||||||
<h2>
|
|
||||||
<span class="text-capitalize"><?php echo $crud->getHeading() ?? $crud->entity_name_plural; ?></span>
|
|
||||||
<small><?php echo $crud->getSubheading() ?? mb_ucfirst(trans('backpack::crud.preview')).' '.$crud->entity_name; ?>.</small>
|
|
||||||
<?php if($crud->hasAccess('list')): ?>
|
|
||||||
<small class=""><a href="<?php echo e(url($crud->route)); ?>" class="font-sm"><i class="la la-angle-double-left"></i> <?php echo e(trans('backpack::crud.back_to_all')); ?> <span><?php echo e($crud->entity_name_plural); ?></span></a></small>
|
|
||||||
<?php endif; ?>
|
|
||||||
</h2>
|
|
||||||
</section>
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
|
|
||||||
<?php $__env->startSection('content'); ?>
|
|
||||||
<div class="row">
|
|
||||||
<div class="<?php echo e($crud->getShowContentClass()); ?>">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="">
|
|
||||||
<?php if($crud->model->translationEnabled()): ?>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12 mb-2">
|
|
||||||
|
|
||||||
<div class="btn-group float-right">
|
|
||||||
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<?php echo e(trans('backpack::crud.language')); ?>: <?php echo e($crud->model->getAvailableLocales()[request()->input('_locale')?request()->input('_locale'):App::getLocale()]); ?> <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<?php $__currentLoopData = $crud->model->getAvailableLocales(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $locale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<a class="dropdown-item" href="<?php echo e(url($crud->route.'/'.$entry->getKey().'/show')); ?>?_locale=<?php echo e($key); ?>"><?php echo e($locale); ?></a>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<div class="card no-padding no-border">
|
|
||||||
<table class="table table-striped mb-0">
|
|
||||||
<tbody>
|
|
||||||
<?php $__currentLoopData = $crud->columns(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $column): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<strong><?php echo $column['label']; ?>:</strong>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<?php
|
|
||||||
// create a list of paths to column blade views
|
|
||||||
// including the configured view_namespaces
|
|
||||||
$columnPaths = array_map(function($item) use ($column) {
|
|
||||||
return $item.'.'.$column['type'];
|
|
||||||
}, \Backpack\CRUD\ViewNamespaces::getFor('columns'));
|
|
||||||
|
|
||||||
// but always fall back to the stock 'text' column
|
|
||||||
// if a view doesn't exist
|
|
||||||
if (!in_array('crud::columns.text', $columnPaths)) {
|
|
||||||
$columnPaths[] = 'crud::columns.text';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<?php echo $__env->first($columnPaths, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php if($crud->buttons()->where('stack', 'line')->count()): ?>
|
|
||||||
<tr>
|
|
||||||
<td><strong><?php echo e(trans('backpack::crud.actions')); ?></strong></td>
|
|
||||||
<td>
|
|
||||||
<?php echo $__env->make('crud::inc.button_stack', ['stack' => 'line'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php endif; ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
|
|
||||||
<?php echo $__env->make(backpack_view('blank'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/show.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<li class="nav-item dropdown pr-4">
|
<li class="nav-item dropdown pr-4">
|
||||||
<a class="nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" style="position: relative;width: 35px;height: 35px;margin: 0 10px;">
|
<a class="nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" style="position: relative;width: 35px;height: 35px;margin: 0 10px;">
|
||||||
<img class="img-avatar" src="<?php echo e(backpack_avatar_url(backpack_auth()->user())); ?>" alt="<?php echo e(backpack_auth()->user()->name); ?>" onerror="this.style.display='none'" style="margin: 0;position: absolute;left: 0;z-index: 1;">
|
<img class="img-avatar" src="<?php echo e(backpack_avatar_url(backpack_auth()->user())); ?>" alt="<?php echo e(backpack_auth()->user()->name); ?>" onerror="this.style.display='none'" style="margin: 0;position: absolute;left: 0;z-index: 1;">
|
||||||
<span class="backpack-avatar-menu-container" style="position: absolute;left: 0;width: 100%;background-color: #00a65a;border-radius: 50%;color: #FFF;line-height: 35px;font-size: 85%;font-weight: 300;">
|
<span class="backpack-avatar-menu-container" style="position: absolute;left: 0;width: 100%;background-color: #00a65a;border-radius: 50%;color: #FFF;line-height: 35px;">
|
||||||
<?php echo e(backpack_user()->getAttribute('name') ? mb_substr(backpack_user()->name, 0, 1, 'UTF-8') : 'A'); ?>
|
<?php echo e(backpack_user()->getAttribute('name') ? mb_substr(backpack_user()->name, 0, 1, 'UTF-8') : 'A'); ?>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -12,4 +12,4 @@
|
||||||
<a class="dropdown-item" href="<?php echo e(backpack_url('logout')); ?>"><i class="la la-lock"></i> <?php echo e(trans('backpack::base.logout')); ?></a>
|
<a class="dropdown-item" href="<?php echo e(backpack_url('logout')); ?>"><i class="la la-lock"></i> <?php echo e(trans('backpack::base.logout')); ?></a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/menu_user_dropdown.blade.php ENDPATH**/ ?>
|
<?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/menu_user_dropdown.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
|
|
||||||
<?php
|
|
||||||
$column['value'] = $column['value'] ?? data_get($entry, $column['name']);
|
|
||||||
$column['escaped'] = $column['escaped'] ?? true;
|
|
||||||
$column['prefix'] = $column['prefix'] ?? '';
|
|
||||||
$column['suffix'] = $column['suffix'] ?? '';
|
|
||||||
$column['format'] = $column['format'] ?? config('backpack.base.default_datetime_format');
|
|
||||||
$column['text'] = $column['default'] ?? '-';
|
|
||||||
|
|
||||||
if($column['value'] instanceof \Closure) {
|
|
||||||
$column['value'] = $column['value']($entry);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!empty($column['value'])) {
|
|
||||||
$date = \Carbon\Carbon::parse($column['value'])
|
|
||||||
->locale(App::getLocale())
|
|
||||||
->isoFormat($column['format']);
|
|
||||||
|
|
||||||
$column['text'] = $column['prefix'].$date.$column['suffix'];
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<span data-order="<?php echo e($column['value'] ?? ''); ?>">
|
|
||||||
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_start', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
|
||||||
<?php if($column['escaped']): ?>
|
|
||||||
<?php echo e($column['text']); ?>
|
|
||||||
|
|
||||||
<?php else: ?>
|
|
||||||
<?php echo $column['text']; ?>
|
|
||||||
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
|
||||||
</span>
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/columns/datetime.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -93,4 +93,4 @@
|
||||||
// crud.addFunctionToDataTablesDrawEventQueue('deleteEntry');
|
// crud.addFunctionToDataTablesDrawEventQueue('deleteEntry');
|
||||||
</script>
|
</script>
|
||||||
<?php if(!request()->ajax()): ?> <?php $__env->stopPush(); ?> <?php endif; ?>
|
<?php if(!request()->ajax()): ?> <?php $__env->stopPush(); ?> <?php endif; ?>
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/buttons/delete.blade.php ENDPATH**/ ?>
|
<?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/buttons/delete.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
<?php $attributes = $attributes->exceptProps(['disabled' => false]); ?>
|
|
||||||
<?php foreach (array_filter((['disabled' => false]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
||||||
$$__key = $$__key ?? $__value;
|
|
||||||
} ?>
|
|
||||||
<?php $__defined_vars = get_defined_vars(); ?>
|
|
||||||
<?php foreach ($attributes as $__key => $__value) {
|
|
||||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
||||||
} ?>
|
|
||||||
<?php unset($__defined_vars); ?>
|
|
||||||
|
|
||||||
<input <?php echo e($disabled ? 'disabled' : ''); ?> <?php echo $attributes->merge(['class' => 'border-gray-300 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 rounded-md shadow-sm']); ?>>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/input.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,110 +0,0 @@
|
||||||
<?php $attributes = $attributes->exceptProps(['title' => __('Confirm Password'), 'content' => __('For your security, please confirm your password to continue.'), 'button' => __('Confirm')]); ?>
|
|
||||||
<?php foreach (array_filter((['title' => __('Confirm Password'), 'content' => __('For your security, please confirm your password to continue.'), 'button' => __('Confirm')]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
||||||
$$__key = $$__key ?? $__value;
|
|
||||||
} ?>
|
|
||||||
<?php $__defined_vars = get_defined_vars(); ?>
|
|
||||||
<?php foreach ($attributes as $__key => $__value) {
|
|
||||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
||||||
} ?>
|
|
||||||
<?php unset($__defined_vars); ?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
$confirmableId = md5($attributes->wire('then'));
|
|
||||||
?>
|
|
||||||
|
|
||||||
<span
|
|
||||||
<?php echo e($attributes->wire('then')); ?>
|
|
||||||
|
|
||||||
x-data
|
|
||||||
x-ref="span"
|
|
||||||
x-on:click="$wire.startConfirmingPassword('<?php echo e($confirmableId); ?>')"
|
|
||||||
x-on:password-confirmed.window="setTimeout(() => $event.detail.id === '<?php echo e($confirmableId); ?>' && $refs.span.dispatchEvent(new CustomEvent('then', { bubbles: false })), 250);"
|
|
||||||
>
|
|
||||||
<?php echo e($slot); ?>
|
|
||||||
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<?php if (! $__env->hasRenderedOnce('f4f44ac6-b80d-44d5-abf0-c9aa2d2b224a')): $__env->markAsRenderedOnce('f4f44ac6-b80d-44d5-abf0-c9aa2d2b224a'); ?>
|
|
||||||
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
||||||
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.dialog-modal','data' => ['wire:model' => 'confirmingPassword']]); ?>
|
|
||||||
<?php $component->withName('jet-dialog-modal'); ?>
|
|
||||||
<?php if ($component->shouldRender()): ?>
|
|
||||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
||||||
<?php $component->withAttributes(['wire:model' => 'confirmingPassword']); ?>
|
|
||||||
<?php $__env->slot('title'); ?>
|
|
||||||
<?php echo e($title); ?>
|
|
||||||
|
|
||||||
<?php $__env->endSlot(); ?>
|
|
||||||
|
|
||||||
<?php $__env->slot('content'); ?>
|
|
||||||
<?php echo e($content); ?>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="mt-4" x-data="{}" x-on:confirming-password.window="setTimeout(() => $refs.confirmable_password.focus(), 250)">
|
|
||||||
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
||||||
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.input','data' => ['type' => 'password','class' => 'mt-1 block w-3/4','placeholder' => ''.e(__('Password')).'','xRef' => 'confirmable_password','wire:model.defer' => 'confirmablePassword','wire:keydown.enter' => 'confirmPassword']]); ?>
|
|
||||||
<?php $component->withName('jet-input'); ?>
|
|
||||||
<?php if ($component->shouldRender()): ?>
|
|
||||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
||||||
<?php $component->withAttributes(['type' => 'password','class' => 'mt-1 block w-3/4','placeholder' => ''.e(__('Password')).'','x-ref' => 'confirmable_password','wire:model.defer' => 'confirmablePassword','wire:keydown.enter' => 'confirmPassword']); ?>
|
|
||||||
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
||||||
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
||||||
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderComponent(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
||||||
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.input-error','data' => ['for' => 'confirmable_password','class' => 'mt-2']]); ?>
|
|
||||||
<?php $component->withName('jet-input-error'); ?>
|
|
||||||
<?php if ($component->shouldRender()): ?>
|
|
||||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
||||||
<?php $component->withAttributes(['for' => 'confirmable_password','class' => 'mt-2']); ?>
|
|
||||||
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
||||||
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
||||||
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderComponent(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
<?php $__env->endSlot(); ?>
|
|
||||||
|
|
||||||
<?php $__env->slot('footer'); ?>
|
|
||||||
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
||||||
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.secondary-button','data' => ['wire:click' => 'stopConfirmingPassword','wire:loading.attr' => 'disabled']]); ?>
|
|
||||||
<?php $component->withName('jet-secondary-button'); ?>
|
|
||||||
<?php if ($component->shouldRender()): ?>
|
|
||||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
||||||
<?php $component->withAttributes(['wire:click' => 'stopConfirmingPassword','wire:loading.attr' => 'disabled']); ?>
|
|
||||||
<?php echo e(__('Cancel')); ?>
|
|
||||||
|
|
||||||
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
||||||
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
||||||
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderComponent(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
||||||
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.button','data' => ['class' => 'ml-2','dusk' => 'confirm-password-button','wire:click' => 'confirmPassword','wire:loading.attr' => 'disabled']]); ?>
|
|
||||||
<?php $component->withName('jet-button'); ?>
|
|
||||||
<?php if ($component->shouldRender()): ?>
|
|
||||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
||||||
<?php $component->withAttributes(['class' => 'ml-2','dusk' => 'confirm-password-button','wire:click' => 'confirmPassword','wire:loading.attr' => 'disabled']); ?>
|
|
||||||
<?php echo e($button); ?>
|
|
||||||
|
|
||||||
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
||||||
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
||||||
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderComponent(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php $__env->endSlot(); ?>
|
|
||||||
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
||||||
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
||||||
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderComponent(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/confirms-password.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
<?php
|
|
||||||
// preserve backwards compatibility with Widgets in Backpack 4.0
|
|
||||||
if (isset($widget['wrapperClass'])) {
|
|
||||||
$widget['wrapper']['class'] = $widget['wrapperClass'];
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php echo $__env->renderWhen(!empty($widget['wrapper']), 'backpack::widgets.inc.wrapper_start', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
|
||||||
<div class="jumbotron mb-2">
|
|
||||||
|
|
||||||
<?php if(isset($widget['heading'])): ?>
|
|
||||||
<h1 class="display-3"><?php echo $widget['heading']; ?></h1>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if(isset($widget['content'])): ?>
|
|
||||||
<p><?php echo $widget['content']; ?></p>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if(isset($widget['button_link'])): ?>
|
|
||||||
<p class="lead">
|
|
||||||
<a class="btn btn-primary" href="<?php echo e($widget['button_link']); ?>" role="button"><?php echo e($widget['button_text']); ?></a>
|
|
||||||
</p>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
<?php echo $__env->renderWhen(!empty($widget['wrapper']), 'backpack::widgets.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/widgets/jumbotron.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<button <?php echo e($attributes->merge(['type' => 'submit', 'class' => 'inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 active:bg-gray-900 focus:outline-none focus:border-gray-900 focus:ring focus:ring-gray-300 disabled:opacity-25 transition'])); ?>>
|
|
||||||
<?php echo e($slot); ?>
|
|
||||||
|
|
||||||
</button>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/button.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
<?php
|
|
||||||
if (config('backpack.base.show_getting_started')) {
|
|
||||||
$widgets['before_content'][] = [
|
|
||||||
'type' => 'view',
|
|
||||||
'view' => 'backpack::inc.getting_started',
|
|
||||||
];
|
|
||||||
} else {
|
|
||||||
$widgets['before_content'][] = [
|
|
||||||
'type' => 'jumbotron',
|
|
||||||
'heading' => trans('backpack::base.welcome'),
|
|
||||||
'content' => trans('backpack::base.use_sidebar'),
|
|
||||||
'button_link' => backpack_url('logout'),
|
|
||||||
'button_text' => trans('backpack::base.logout'),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php $__env->startSection('content'); ?>
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
|
|
||||||
<?php echo $__env->make(backpack_view('blank'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/dashboard.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
<?php if(!empty($widgets)): ?>
|
|
||||||
<?php $__currentLoopData = $widgets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currentWidget): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
|
|
||||||
<?php if(is_array($currentWidget)): ?>
|
|
||||||
<?php
|
|
||||||
$currentWidget = \Backpack\CRUD\app\Library\Widget::add($currentWidget);
|
|
||||||
?>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php echo $__env->make($currentWidget->getFinalViewPath(), ['widget' => $currentWidget->toArray()], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/widgets.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
|
|
||||||
<?php if($crud->groupedErrorsEnabled() && session()->get('errors')): ?>
|
|
||||||
<div class="alert alert-danger pb-0">
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
<?php $__currentLoopData = session()->get('errors')->getBags(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $bag => $errorMessages): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php $__currentLoopData = $errorMessages->getMessages(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $errorMessageForInput): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php $__currentLoopData = $errorMessageForInput; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<li><i class="la la-info-circle"></i> <?php echo e($message); ?></li>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/inc/grouped_errors.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php /**PATH C:\xampp2\htdocs\exchange\resources\views/vendor/backpack/base/inc/topbar_right_content.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
</<?php echo e($field['wrapper']['element'] ?? 'div'); ?>><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/fields/inc/wrapper_end.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
|
|
||||||
<?php $__currentLoopData = $fields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php echo $__env->make($crud->getFirstFieldView($field['type'], $field['view_namespace'] ?? false), $field, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/inc/show_fields.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
<?php if($paginator->hasPages()): ?>
|
|
||||||
<div class="ui pagination menu" role="navigation">
|
|
||||||
|
|
||||||
<?php if($paginator->onFirstPage()): ?>
|
|
||||||
<a class="icon item disabled" aria-disabled="true" aria-label="<?php echo app('translator')->get('pagination.previous'); ?>"> <i class="left chevron icon"></i> </a>
|
|
||||||
<?php else: ?>
|
|
||||||
<a class="icon item" href="<?php echo e($paginator->previousPageUrl()); ?>" rel="prev" aria-label="<?php echo app('translator')->get('pagination.previous'); ?>"> <i class="left chevron icon"></i> </a>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
|
|
||||||
<?php if(is_string($element)): ?>
|
|
||||||
<a class="icon item disabled" aria-disabled="true"><?php echo e($element); ?></a>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if(is_array($element)): ?>
|
|
||||||
<?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php if($page == $paginator->currentPage()): ?>
|
|
||||||
<a class="item active" href="<?php echo e($url); ?>" aria-current="page"><?php echo e($page); ?></a>
|
|
||||||
<?php else: ?>
|
|
||||||
<a class="item" href="<?php echo e($url); ?>"><?php echo e($page); ?></a>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($paginator->hasMorePages()): ?>
|
|
||||||
<a class="icon item" href="<?php echo e($paginator->nextPageUrl()); ?>" rel="next" aria-label="<?php echo app('translator')->get('pagination.next'); ?>"> <i class="right chevron icon"></i> </a>
|
|
||||||
<?php else: ?>
|
|
||||||
<a class="icon item disabled" aria-disabled="true" aria-label="<?php echo app('translator')->get('pagination.next'); ?>"> <i class="right chevron icon"></i> </a>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/framework/src/Illuminate/Pagination/resources/views/semantic-ui.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<header class="<?php echo e(config('backpack.base.header_class')); ?>">
|
<header class="<?php echo e(config('backpack.base.header_class')); ?>">
|
||||||
|
<!-- Logo -->
|
||||||
<button class="navbar-toggler sidebar-toggler d-lg-none mr-auto ml-3" type="button" data-toggle="sidebar-show" aria-label="<?php echo e(trans('backpack::base.toggle_navigation')); ?>">
|
<button class="navbar-toggler sidebar-toggler d-lg-none mr-auto ml-3" type="button" data-toggle="sidebar-show" aria-label="<?php echo e(trans('backpack::base.toggle_navigation')); ?>">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -13,4 +13,4 @@
|
||||||
|
|
||||||
<?php echo $__env->make(backpack_view('inc.menu'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
<?php echo $__env->make(backpack_view('inc.menu'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
||||||
</header>
|
</header>
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/main_header.blade.php ENDPATH**/ ?>
|
<?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/main_header.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1,58 +0,0 @@
|
||||||
<?php $attributes = $attributes->exceptProps(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white', 'dropdownClasses' => '']); ?>
|
|
||||||
<?php foreach (array_filter((['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white', 'dropdownClasses' => '']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
||||||
$$__key = $$__key ?? $__value;
|
|
||||||
} ?>
|
|
||||||
<?php $__defined_vars = get_defined_vars(); ?>
|
|
||||||
<?php foreach ($attributes as $__key => $__value) {
|
|
||||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
||||||
} ?>
|
|
||||||
<?php unset($__defined_vars); ?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
switch ($align) {
|
|
||||||
case 'left':
|
|
||||||
$alignmentClasses = 'origin-top-left left-0';
|
|
||||||
break;
|
|
||||||
case 'top':
|
|
||||||
$alignmentClasses = 'origin-top';
|
|
||||||
break;
|
|
||||||
case 'none':
|
|
||||||
case 'false':
|
|
||||||
$alignmentClasses = '';
|
|
||||||
break;
|
|
||||||
case 'right':
|
|
||||||
default:
|
|
||||||
$alignmentClasses = 'origin-top-right right-0';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch ($width) {
|
|
||||||
case '48':
|
|
||||||
$width = 'w-48';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="relative" x-data="{ open: false }" @click.away="open = false" @close.stop="open = false">
|
|
||||||
<div @click="open = ! open">
|
|
||||||
<?php echo e($trigger); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div x-show="open"
|
|
||||||
x-transition:enter="transition ease-out duration-200"
|
|
||||||
x-transition:enter-start="transform opacity-0 scale-95"
|
|
||||||
x-transition:enter-end="transform opacity-100 scale-100"
|
|
||||||
x-transition:leave="transition ease-in duration-75"
|
|
||||||
x-transition:leave-start="transform opacity-100 scale-100"
|
|
||||||
x-transition:leave-end="transform opacity-0 scale-95"
|
|
||||||
class="absolute z-50 mt-2 <?php echo e($width); ?> rounded-md shadow-lg <?php echo e($alignmentClasses); ?> <?php echo e($dropdownClasses); ?>"
|
|
||||||
style="display: none;"
|
|
||||||
@click="open = false">
|
|
||||||
<div class="rounded-md ring-1 ring-black ring-opacity-5 <?php echo e($contentClasses); ?>">
|
|
||||||
<?php echo e($content); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/dropdown.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
|
|
||||||
|
|
||||||
<title><?php echo e(config('app.name', 'Laravel')); ?></title>
|
|
||||||
|
|
||||||
<!-- Fonts -->
|
|
||||||
|
|
||||||
<link rel="icon" type="image/png" href="<?php echo e(url("/favicon.png")); ?>"/>
|
|
||||||
|
|
||||||
<!-- Styles -->
|
|
||||||
<link rel="stylesheet" href="<?php echo e(mix('css/antd.css')); ?>">
|
|
||||||
<link rel="stylesheet" href="<?php echo e(mix('css/app.css')); ?>">
|
|
||||||
|
|
||||||
<!-- Scripts -->
|
|
||||||
<?php echo app('Tightenco\Ziggy\BladeRouteGenerator')->generate(); ?>
|
|
||||||
<script src="<?php echo e(mix('js/app.js')); ?>" defer></script>
|
|
||||||
</head>
|
|
||||||
<body class="font-sans antialiased">
|
|
||||||
<?php echo app('Tightenco\Ziggy\BladeRouteGenerator')->generate(); ?>
|
|
||||||
<div id="app" data-page="<?php echo e(json_encode($page)); ?>"></div>
|
|
||||||
|
|
||||||
<?php if(app()->isLocal()): ?>
|
|
||||||
<script src="http://localhost:3000/browser-sync/browser-sync-client.js"></script>
|
|
||||||
<?php endif; ?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<?php /**PATH /var/www/exchange/resources/views/app.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// This is intentionaly run after dom loads so this way we can avoid showing duplicate alerts
|
// This is intentionaly run after dom loads so this way we can avoid showing duplicate alerts
|
||||||
// when the user is beeing redirected by persistent table, that happens before this event triggers.
|
// when the user is beeing redirected by persistent table, that happens before this event triggers.
|
||||||
document.onreadystatechange = function() {
|
document.onreadystatechange = function () {
|
||||||
if (document.readyState == "interactive") {
|
if (document.readyState == "interactive") {
|
||||||
Noty.overrideDefaults({
|
Noty.overrideDefaults({
|
||||||
layout: 'topRight',
|
layout: 'topRight',
|
||||||
|
|
@ -12,15 +12,15 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// get alerts from the alert bag
|
// get alerts from the alert bag
|
||||||
var $alerts_from_php = <?php echo e(Illuminate\Support\Js::from(\Alert::getMessages())); ?>;
|
var $alerts_from_php = JSON.parse('<?php echo json_encode(\Alert::getMessages(), 15, 512) ?>');
|
||||||
|
|
||||||
// get the alerts from the localstorage
|
// get the alerts from the localstorage
|
||||||
var $alerts_from_localstorage = JSON.parse(localStorage.getItem('backpack_alerts')) ?
|
var $alerts_from_localstorage = JSON.parse(localStorage.getItem('backpack_alerts'))
|
||||||
JSON.parse(localStorage.getItem('backpack_alerts')) : {};
|
? JSON.parse(localStorage.getItem('backpack_alerts')) : {};
|
||||||
|
|
||||||
// merge both php alerts and localstorage alerts
|
// merge both php alerts and localstorage alerts
|
||||||
Object.entries($alerts_from_php).forEach(function(type) {
|
Object.entries($alerts_from_php).forEach(function(type) {
|
||||||
if (typeof $alerts_from_localstorage[type[0]] !== 'undefined') {
|
if(typeof $alerts_from_localstorage[type[0]] !== 'undefined') {
|
||||||
type[1].forEach(function(msg) {
|
type[1].forEach(function(msg) {
|
||||||
$alerts_from_localstorage[type[0]].push(msg);
|
$alerts_from_localstorage[type[0]].push(msg);
|
||||||
});
|
});
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
alert['type'] = type;
|
alert['type'] = type;
|
||||||
alert['text'] = text;
|
alert['text'] = text;
|
||||||
new Noty(alert).show()
|
new Noty(alert).show()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// in the end, remove backpack alerts from localStorage
|
// in the end, remove backpack alerts from localStorage
|
||||||
|
|
@ -45,4 +45,4 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/alerts.blade.php ENDPATH**/ ?>
|
<?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/alerts.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -7,4 +7,4 @@
|
||||||
<?php echo e(trans('backpack::base.powered_by')); ?> <a target="_blank" rel="noopener" href="http://backpackforlaravel.com?ref=panel_footer_link">Backpack for Laravel</a>.
|
<?php echo e(trans('backpack::base.powered_by')); ?> <a target="_blank" rel="noopener" href="http://backpackforlaravel.com?ref=panel_footer_link">Backpack for Laravel</a>.
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/footer.blade.php ENDPATH**/ ?>
|
<?php endif; ?><?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/footer.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<?php if($crud->hasAccess('show')): ?>
|
<?php if($crud->hasAccess('show')): ?>
|
||||||
<?php if(!$crud->model->translationEnabled()): ?>
|
<?php if(!$crud->model->translationEnabled()): ?>
|
||||||
|
|
||||||
|
<!-- Single edit button -->
|
||||||
<a href="<?php echo e(url($crud->route.'/'.$entry->getKey().'/show')); ?>" class="btn btn-sm btn-link"><i class="la la-eye"></i> <?php echo e(trans('backpack::crud.preview')); ?></a>
|
<a href="<?php echo e(url($crud->route.'/'.$entry->getKey().'/show')); ?>" class="btn btn-sm btn-link"><i class="la la-eye"></i> <?php echo e(trans('backpack::crud.preview')); ?></a>
|
||||||
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
|
||||||
|
<!-- Edit button group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a href="<?php echo e(url($crud->route.'/'.$entry->getKey().'/show')); ?>" class="btn btn-sm btn-link pr-0"><i class="la la-eye"></i> <?php echo e(trans('backpack::crud.preview')); ?></a>
|
<a href="<?php echo e(url($crud->route.'/'.$entry->getKey().'/show')); ?>" class="btn btn-sm btn-link pr-0"><i class="la la-eye"></i> <?php echo e(trans('backpack::crud.preview')); ?></a>
|
||||||
<a class="btn btn-sm btn-link dropdown-toggle text-primary pl-1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<a class="btn btn-sm btn-link dropdown-toggle text-primary pl-1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
|
@ -15,11 +15,10 @@
|
||||||
<ul class="dropdown-menu dropdown-menu-right">
|
<ul class="dropdown-menu dropdown-menu-right">
|
||||||
<li class="dropdown-header"><?php echo e(trans('backpack::crud.preview')); ?>:</li>
|
<li class="dropdown-header"><?php echo e(trans('backpack::crud.preview')); ?>:</li>
|
||||||
<?php $__currentLoopData = $crud->model->getAvailableLocales(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $locale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
<?php $__currentLoopData = $crud->model->getAvailableLocales(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $locale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||||
<a class="dropdown-item" href="<?php echo e(url($crud->route.'/'.$entry->getKey().'/show')); ?>?_locale=<?php echo e($key); ?>"><?php echo e($locale); ?></a>
|
<a class="dropdown-item" href="<?php echo e(url($crud->route.'/'.$entry->getKey().'/show')); ?>?locale=<?php echo e($key); ?>"><?php echo e($locale); ?></a>
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?><?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/buttons/show.blade.php ENDPATH**/ ?>
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/buttons/show.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
<?php if($paginator->hasPages()): ?>
|
|
||||||
<nav>
|
|
||||||
<ul class="pagination">
|
|
||||||
|
|
||||||
<?php if($paginator->onFirstPage()): ?>
|
|
||||||
<li class="page-item disabled" aria-disabled="true">
|
|
||||||
<span class="page-link"><?php echo app('translator')->get('pagination.previous'); ?></span>
|
|
||||||
</li>
|
|
||||||
<?php else: ?>
|
|
||||||
<li class="page-item">
|
|
||||||
<a class="page-link" href="<?php echo e($paginator->previousPageUrl()); ?>" rel="prev"><?php echo app('translator')->get('pagination.previous'); ?></a>
|
|
||||||
</li>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($paginator->hasMorePages()): ?>
|
|
||||||
<li class="page-item">
|
|
||||||
<a class="page-link" href="<?php echo e($paginator->nextPageUrl()); ?>" rel="next"><?php echo app('translator')->get('pagination.next'); ?></a>
|
|
||||||
</li>
|
|
||||||
<?php else: ?>
|
|
||||||
<li class="page-item disabled" aria-disabled="true">
|
|
||||||
<span class="page-link"><?php echo app('translator')->get('pagination.next'); ?></span>
|
|
||||||
</li>
|
|
||||||
<?php endif; ?>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/framework/src/Illuminate/Pagination/resources/views/simple-bootstrap-4.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -115,31 +115,17 @@
|
||||||
{ fn = fn[ arr[i] ]; }
|
{ fn = fn[ arr[i] ]; }
|
||||||
fn.apply(window, args);
|
fn.apply(window, args);
|
||||||
},
|
},
|
||||||
updateUrl : function (url) {
|
updateUrl : function (new_url) {
|
||||||
let urlStart = "<?php echo e(url($crud->route)); ?>";
|
url_start = "<?php echo e(url($crud->route)); ?>";
|
||||||
let urlEnd = url.replace(urlStart, '');
|
url_end = new_url.replace(url_start, '');
|
||||||
urlEnd = urlEnd.replace('/search', '');
|
url_end = url_end.replace('/search', '');
|
||||||
let newUrl = urlStart + urlEnd;
|
new_url = url_start + url_end;
|
||||||
let tmpUrl = newUrl.split("?")[0],
|
|
||||||
params_arr = [],
|
|
||||||
queryString = (newUrl.indexOf("?") !== -1) ? newUrl.split("?")[1] : false;
|
|
||||||
|
|
||||||
// exclude the persistent-table parameter from url
|
window.history.pushState({}, '', new_url);
|
||||||
if (queryString !== false) {
|
localStorage.setItem('<?php echo e(Str::slug($crud->getRoute())); ?>_list_url', new_url);
|
||||||
params_arr = queryString.split("&");
|
|
||||||
for (let i = params_arr.length - 1; i >= 0; i--) {
|
|
||||||
let param = params_arr[i].split("=")[0];
|
|
||||||
if (param === 'persistent-table') {
|
|
||||||
params_arr.splice(i, 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
newUrl = params_arr.length ? tmpUrl + "?" + params_arr.join("&") : tmpUrl;
|
|
||||||
}
|
|
||||||
window.history.pushState({}, '', newUrl);
|
|
||||||
localStorage.setItem('<?php echo e(Str::slug($crud->getRoute())); ?>_list_url', newUrl);
|
|
||||||
},
|
},
|
||||||
dataTableConfiguration: {
|
dataTableConfiguration: {
|
||||||
bInfo: <?php echo e(var_export($crud->getOperationSetting('showEntryCount') ?? true)); ?>,
|
|
||||||
<?php if($crud->getResponsiveTable()): ?>
|
<?php if($crud->getResponsiveTable()): ?>
|
||||||
responsive: {
|
responsive: {
|
||||||
details: {
|
details: {
|
||||||
|
|
@ -232,7 +218,7 @@
|
||||||
"thousands": "<?php echo e(trans('backpack::crud.thousands')); ?>",
|
"thousands": "<?php echo e(trans('backpack::crud.thousands')); ?>",
|
||||||
"lengthMenu": "<?php echo e(trans('backpack::crud.lengthMenu')); ?>",
|
"lengthMenu": "<?php echo e(trans('backpack::crud.lengthMenu')); ?>",
|
||||||
"loadingRecords": "<?php echo e(trans('backpack::crud.loadingRecords')); ?>",
|
"loadingRecords": "<?php echo e(trans('backpack::crud.loadingRecords')); ?>",
|
||||||
"processing": "<img src='<?php echo e(asset('packages/backpack/base/img/spinner.svg')); ?>' alt='<?php echo e(trans('backpack::crud.processing')); ?>'>",
|
"processing": "<img src='<?php echo e(asset('packages/backpack/crud/img/ajax-loader.gif')); ?>' alt='<?php echo e(trans('backpack::crud.processing')); ?>'>",
|
||||||
"search": "_INPUT_",
|
"search": "_INPUT_",
|
||||||
"searchPlaceholder": "<?php echo e(trans('backpack::crud.search')); ?>...",
|
"searchPlaceholder": "<?php echo e(trans('backpack::crud.search')); ?>...",
|
||||||
"zeroRecords": "<?php echo e(trans('backpack::crud.zeroRecords')); ?>",
|
"zeroRecords": "<?php echo e(trans('backpack::crud.zeroRecords')); ?>",
|
||||||
|
|
@ -257,16 +243,10 @@
|
||||||
},
|
},
|
||||||
processing: true,
|
processing: true,
|
||||||
serverSide: true,
|
serverSide: true,
|
||||||
<?php if($crud->getOperationSetting('showEntryCount') === false): ?>
|
|
||||||
pagingType: "simple",
|
|
||||||
<?php endif; ?>
|
|
||||||
searching: <?php echo json_encode($crud->getOperationSetting('searchableTable') ?? true, 15, 512) ?>,
|
searching: <?php echo json_encode($crud->getOperationSetting('searchableTable') ?? true, 15, 512) ?>,
|
||||||
ajax: {
|
ajax: {
|
||||||
"url": "<?php echo url($crud->route.'/search').'?'.Request::getQueryString(); ?>",
|
"url": "<?php echo url($crud->route.'/search').'?'.Request::getQueryString(); ?>",
|
||||||
"type": "POST",
|
"type": "POST"
|
||||||
"data": {
|
|
||||||
"totalEntryCount": "<?php echo e($crud->getOperationSetting('totalEntryCount') ?? false); ?>"
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
dom:
|
dom:
|
||||||
"<'row hidden'<'col-sm-6'i><'col-sm-6 d-print-none'f>>" +
|
"<'row hidden'<'col-sm-6'i><'col-sm-6 d-print-none'f>>" +
|
||||||
|
|
@ -275,6 +255,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php echo $__env->make('crud::inc.export_buttons', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
<?php echo $__env->make('crud::inc.export_buttons', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
@ -282,8 +263,6 @@
|
||||||
|
|
||||||
window.crud.table = $("#crudTable").DataTable(window.crud.dataTableConfiguration);
|
window.crud.table = $("#crudTable").DataTable(window.crud.dataTableConfiguration);
|
||||||
|
|
||||||
window.crud.updateUrl(location.href);
|
|
||||||
|
|
||||||
// move search bar
|
// move search bar
|
||||||
$("#crudTable_filter").appendTo($('#datatable_search_stack' ));
|
$("#crudTable_filter").appendTo($('#datatable_search_stack' ));
|
||||||
$("#crudTable_filter input").removeClass('form-control-sm');
|
$("#crudTable_filter input").removeClass('form-control-sm');
|
||||||
|
|
@ -338,19 +317,14 @@
|
||||||
localStorage.setItem('DataTables_crudTable_/<?php echo e($crud->getRoute()); ?>_pageLength', len);
|
localStorage.setItem('DataTables_crudTable_/<?php echo e($crud->getRoute()); ?>_pageLength', len);
|
||||||
});
|
});
|
||||||
|
|
||||||
// make sure AJAX requests include XSRF token
|
// make sure AJAX requests include XSRF token
|
||||||
$.ajaxPrefilter(function(options, originalOptions, xhr) {
|
$.ajaxPrefilter(function(options, originalOptions, xhr) {
|
||||||
var token = $('meta[name="csrf_token"]').attr('content');
|
var token = $('meta[name="csrf_token"]').attr('content');
|
||||||
|
|
||||||
if (token) {
|
if (token) {
|
||||||
return xhr.setRequestHeader('X-XSRF-TOKEN', token);
|
return xhr.setRequestHeader('X-XSRF-TOKEN', token);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$('#crudTable').on( 'page.dt', function () {
|
|
||||||
localStorage.setItem('page_changed', true);
|
|
||||||
});
|
|
||||||
|
|
||||||
// on DataTable draw event run all functions in the queue
|
// on DataTable draw event run all functions in the queue
|
||||||
// (eg. delete and details_row buttons add functions to this queue)
|
// (eg. delete and details_row buttons add functions to this queue)
|
||||||
|
|
@ -399,4 +373,4 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php echo $__env->make('crud::inc.details_row_logic', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
<?php echo $__env->make('crud::inc.details_row_logic', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/inc/datatables_logic.blade.php ENDPATH**/ ?>
|
<?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/inc/datatables_logic.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
|
|
||||||
|
|
||||||
<title><?php echo e(config('app.name', 'Laravel')); ?></title>
|
|
||||||
|
|
||||||
<!-- Fonts -->
|
|
||||||
|
|
||||||
<link rel="icon" type="image/png" href="<?php echo e(url("/favicon.png")); ?>"/>
|
|
||||||
|
|
||||||
<!-- Styles -->
|
|
||||||
<link rel="stylesheet" href="<?php echo e(mix('css/antd.css')); ?>">
|
|
||||||
<link rel="stylesheet" href="<?php echo e(mix('css/app.css')); ?>">
|
|
||||||
|
|
||||||
<!-- Scripts -->
|
|
||||||
<?php echo app('Tightenco\Ziggy\BladeRouteGenerator')->generate(); ?>
|
|
||||||
<script src="<?php echo e(mix('js/app.js')); ?>" defer></script>
|
|
||||||
</head>
|
|
||||||
<body class="font-sans antialiased">
|
|
||||||
<?php echo app('Tightenco\Ziggy\BladeRouteGenerator')->generate(); ?>
|
|
||||||
<div id="app" data-page="<?php echo e(json_encode($page)); ?>"></div>
|
|
||||||
|
|
||||||
<?php if(app()->isLocal()): ?>
|
|
||||||
<script src="http://localhost:3000/browser-sync/browser-sync-client.js"></script>
|
|
||||||
<?php endif; ?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\resources\views/app.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
|
|
||||||
<?php echo $__env->renderWhen(!empty($widget['wrapper']), 'backpack::widgets.inc.wrapper_start', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
|
||||||
|
|
||||||
<?php echo $__env->make($widget['view'], ['widget' => $widget], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
|
|
||||||
<?php echo $__env->renderWhen(!empty($widget['wrapper']), 'backpack::widgets.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/widgets/view.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
$error_number = 405;
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php $__env->startSection('title'); ?>
|
|
||||||
Method not allowed.
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
|
|
||||||
<?php $__env->startSection('description'); ?>
|
|
||||||
<?php
|
|
||||||
$default_error_message = "Please <a href='javascript:history.back()''>go back</a> or return to <a href='".url('')."'>our homepage</a>.";
|
|
||||||
?>
|
|
||||||
<?php echo isset($exception)? ($exception->getMessage()?e($exception->getMessage()):$default_error_message): $default_error_message; ?>
|
|
||||||
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
|
|
||||||
<?php echo $__env->make('errors.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\exchange\resources\views/errors/405.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,60 +0,0 @@
|
||||||
<script>
|
|
||||||
$(document).ajaxComplete((e, result, settings) => {
|
|
||||||
if(result.responseJSON?.exception !== undefined) {
|
|
||||||
$.ajax({...settings, accepts: "text/html", backpackExceptionHandler: true});
|
|
||||||
}
|
|
||||||
else if(settings.backpackExceptionHandler) {
|
|
||||||
Noty.closeAll();
|
|
||||||
showErrorFrame(result.responseText);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const showErrorFrame = html => {
|
|
||||||
let page = document.createElement('html');
|
|
||||||
page.innerHTML = html;
|
|
||||||
page.querySelectorAll('a').forEach(a => a.setAttribute('target', '_top'));
|
|
||||||
|
|
||||||
let modal = document.getElementById('ajax-error-frame');
|
|
||||||
|
|
||||||
if (typeof modal !== 'undefined' && modal !== null) {
|
|
||||||
modal.innerHTML = '';
|
|
||||||
} else {
|
|
||||||
modal = document.createElement('div');
|
|
||||||
modal.id = 'ajax-error-frame';
|
|
||||||
modal.style.position = 'fixed';
|
|
||||||
modal.style.width = '100vw';
|
|
||||||
modal.style.height = '100vh';
|
|
||||||
modal.style.padding = '5vh 5vw';
|
|
||||||
modal.style.backgroundColor = 'rgba(0, 0, 0, 0.4)';
|
|
||||||
modal.style.zIndex = 200000;
|
|
||||||
}
|
|
||||||
|
|
||||||
let iframe = document.createElement('iframe');
|
|
||||||
iframe.style.backgroundColor = '#17161A';
|
|
||||||
iframe.style.borderRadius = '5px';
|
|
||||||
iframe.style.width = '100%';
|
|
||||||
iframe.style.height = '100%';
|
|
||||||
iframe.style.border = '0';
|
|
||||||
iframe.style.boxShadow = '0 0 4rem';
|
|
||||||
modal.appendChild(iframe);
|
|
||||||
|
|
||||||
document.body.prepend(modal);
|
|
||||||
document.body.style.overflow = 'hidden';
|
|
||||||
iframe.contentWindow.document.open();
|
|
||||||
iframe.contentWindow.document.write(page.outerHTML);
|
|
||||||
iframe.contentWindow.document.close();
|
|
||||||
|
|
||||||
// Close on click
|
|
||||||
modal.addEventListener('click', () => hideErrorFrame(modal));
|
|
||||||
|
|
||||||
// Close on escape key press
|
|
||||||
modal.setAttribute('tabindex', 0);
|
|
||||||
modal.addEventListener('keydown', e => e.key === 'Escape' && hideErrorFrame(modal));
|
|
||||||
modal.focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
const hideErrorFrame = modal => {
|
|
||||||
modal.outerHTML = '';
|
|
||||||
document.body.style.overflow = 'visible';
|
|
||||||
}
|
|
||||||
</script><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/inc/ajax_error_frame.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,241 +0,0 @@
|
||||||
<input type="hidden" name="_http_referrer" value=<?php echo e(session('referrer_url_override') ?? old('_http_referrer') ?? \URL::previous() ?? url($crud->route)); ?>>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($crud->tabsEnabled() && count($crud->getTabs())): ?>
|
|
||||||
<?php echo $__env->make('crud::inc.show_tabbed_fields', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
<input type="hidden" name="_current_tab" value="<?php echo e(Str::slug($crud->getTabs()[0])); ?>" />
|
|
||||||
<?php else: ?>
|
|
||||||
<div class="card">
|
|
||||||
<div class="card-body row">
|
|
||||||
<?php echo $__env->make('crud::inc.show_fields', ['fields' => $crud->fields()], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $__env->startSection('after_styles'); ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php echo $__env->yieldPushContent('crud_fields_styles'); ?>
|
|
||||||
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
|
|
||||||
<?php $__env->startSection('after_scripts'); ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php echo $__env->yieldPushContent('crud_fields_scripts'); ?>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
function initializeFieldsWithJavascript(container) {
|
|
||||||
var selector;
|
|
||||||
if (container instanceof jQuery) {
|
|
||||||
selector = container;
|
|
||||||
} else {
|
|
||||||
selector = $(container);
|
|
||||||
}
|
|
||||||
selector.find("[data-init-function]").not("[data-initialized=true]").each(function () {
|
|
||||||
var element = $(this);
|
|
||||||
var functionName = element.data('init-function');
|
|
||||||
|
|
||||||
if (typeof window[functionName] === "function") {
|
|
||||||
window[functionName](element);
|
|
||||||
|
|
||||||
// mark the element as initialized, so that its function is never called again
|
|
||||||
element.attr('data-initialized', 'true');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Auto-discover first focusable input
|
|
||||||
* @param {jQuery} form
|
|
||||||
* @return {jQuery}
|
|
||||||
*/
|
|
||||||
function getFirstFocusableField(form) {
|
|
||||||
return form.find('input, select, textarea, button')
|
|
||||||
.not('.close')
|
|
||||||
.not('[disabled]')
|
|
||||||
.filter(':visible:first');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {jQuery} firstField
|
|
||||||
*/
|
|
||||||
function triggerFocusOnFirstInputField(firstField) {
|
|
||||||
if (firstField.hasClass('select2-hidden-accessible')) {
|
|
||||||
return handleFocusOnSelect2Field(firstField);
|
|
||||||
}
|
|
||||||
|
|
||||||
firstField.trigger('focus');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 1- Make sure no other select2 input is open in other field to focus on the right one
|
|
||||||
* 2- Check until select2 is initialized
|
|
||||||
* 3- Open select2
|
|
||||||
*
|
|
||||||
* @param {jQuery} firstField
|
|
||||||
*/
|
|
||||||
function handleFocusOnSelect2Field(firstField){
|
|
||||||
firstField.select2('focus');
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Hacky fix for a bug in select2 with jQuery 3.6.0's new nested-focus "protection"
|
|
||||||
* see: https://github.com/select2/select2/issues/5993
|
|
||||||
* see: https://github.com/jquery/jquery/issues/4382
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
$(document).on('select2:open', () => {
|
|
||||||
setTimeout(() => document.querySelector('.select2-container--open .select2-search__field').focus(), 100);
|
|
||||||
});
|
|
||||||
|
|
||||||
jQuery('document').ready(function($){
|
|
||||||
|
|
||||||
// trigger the javascript for all fields that have their js defined in a separate method
|
|
||||||
initializeFieldsWithJavascript('form');
|
|
||||||
|
|
||||||
// Retrieves the current form data
|
|
||||||
function getFormData() {
|
|
||||||
return new URLSearchParams(new FormData(document.querySelector("main form"))).toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Prevents unloading of page if form data was changed
|
|
||||||
function preventUnload(event) {
|
|
||||||
if (initData !== getFormData()) {
|
|
||||||
// Cancel the event as stated by the standard.
|
|
||||||
event.preventDefault();
|
|
||||||
// Older browsers supported custom message
|
|
||||||
event.returnValue = '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
<?php if($crud->getOperationSetting('warnBeforeLeaving')): ?>
|
|
||||||
const initData = getFormData();
|
|
||||||
window.addEventListener('beforeunload', preventUnload);
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
// Save button has multiple actions: save and exit, save and edit, save and new
|
|
||||||
var saveActions = $('#saveActions'),
|
|
||||||
crudForm = saveActions.parents('form'),
|
|
||||||
saveActionField = $('[name="_save_action"]');
|
|
||||||
|
|
||||||
saveActions.on('click', '.dropdown-menu a', function(){
|
|
||||||
var saveAction = $(this).data('value');
|
|
||||||
saveActionField.val( saveAction );
|
|
||||||
crudForm.submit();
|
|
||||||
});
|
|
||||||
|
|
||||||
// Ctrl+S and Cmd+S trigger Save button click
|
|
||||||
$(document).keydown(function(e) {
|
|
||||||
if ((e.which == '115' || e.which == '83' ) && (e.ctrlKey || e.metaKey))
|
|
||||||
{
|
|
||||||
e.preventDefault();
|
|
||||||
$("button[type=submit]").trigger('click');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
||||||
// prevent duplicate entries on double-clicking the submit form
|
|
||||||
crudForm.submit(function (event) {
|
|
||||||
window.removeEventListener('beforeunload', preventUnload);
|
|
||||||
$("button[type=submit]").prop('disabled', true);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Place the focus on the first element in the form
|
|
||||||
<?php if( $crud->getAutoFocusOnFirstField() ): ?>
|
|
||||||
<?php
|
|
||||||
$focusField = Arr::first($fields, function($field) {
|
|
||||||
return isset($field['auto_focus']) && $field['auto_focus'] == true;
|
|
||||||
});
|
|
||||||
?>
|
|
||||||
|
|
||||||
let focusField;
|
|
||||||
|
|
||||||
<?php if($focusField): ?>
|
|
||||||
<?php
|
|
||||||
$focusFieldName = isset($focusField['value']) && is_iterable($focusField['value']) ? $focusField['name'] . '[]' : $focusField['name'];
|
|
||||||
?>
|
|
||||||
focusField = $('[name="<?php echo e($focusFieldName); ?>"]').eq(0);
|
|
||||||
<?php else: ?>
|
|
||||||
focusField = getFirstFocusableField($('form'));
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
const fieldOffset = focusField.offset().top;
|
|
||||||
const scrollTolerance = $(window).height() / 2;
|
|
||||||
|
|
||||||
triggerFocusOnFirstInputField(focusField);
|
|
||||||
|
|
||||||
if( fieldOffset > scrollTolerance ){
|
|
||||||
$('html, body').animate({scrollTop: (fieldOffset - 30)});
|
|
||||||
}
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
// Add inline errors to the DOM
|
|
||||||
<?php if($crud->inlineErrorsEnabled() && session()->get('errors')): ?>
|
|
||||||
|
|
||||||
window.errors = <?php echo json_encode(session()->get('errors')->getBags()); ?>;
|
|
||||||
|
|
||||||
$.each(errors, function(bag, errorMessages){
|
|
||||||
$.each(errorMessages, function (inputName, messages) {
|
|
||||||
var normalizedProperty = inputName.split('.').map(function(item, index){
|
|
||||||
return index === 0 ? item : '['+item+']';
|
|
||||||
}).join('');
|
|
||||||
|
|
||||||
var field = $('[name="' + normalizedProperty + '[]"]').length ?
|
|
||||||
$('[name="' + normalizedProperty + '[]"]') :
|
|
||||||
$('[name="' + normalizedProperty + '"]'),
|
|
||||||
container = field.parent('.form-group');
|
|
||||||
|
|
||||||
// iterate the inputs to add invalid classes to fields and red text to the field container.
|
|
||||||
container.children('input, textarea, select').each(function() {
|
|
||||||
let containerField = $(this);
|
|
||||||
// add the invalida class to the field.
|
|
||||||
containerField.addClass('is-invalid');
|
|
||||||
// get field container
|
|
||||||
let container = containerField.parent('.form-group');
|
|
||||||
|
|
||||||
// TODO: `repeatable-group` should be deprecated in future version as a BC in favor of a more generic class `no-error-display`
|
|
||||||
if(!container.hasClass('repeatable-group') && !container.hasClass('no-error-display')){
|
|
||||||
container.addClass('text-danger');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$.each(messages, function(key, msg){
|
|
||||||
// highlight the input that errored
|
|
||||||
var row = $('<div class="invalid-feedback d-block">' + msg + '</div>');
|
|
||||||
|
|
||||||
// TODO: `repeatable-group` should be deprecated in future version as a BC in favor of a more generic class `no-error-display`
|
|
||||||
if(!container.hasClass('repeatable-group') && !container.hasClass('no-error-display')){
|
|
||||||
row.appendTo(container);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// highlight its parent tab
|
|
||||||
<?php if($crud->tabsEnabled()): ?>
|
|
||||||
var tab_id = $(container).closest('[role="tabpanel"]').attr('id');
|
|
||||||
$("#form_tabs [aria-controls="+tab_id+"]").addClass('text-danger');
|
|
||||||
<?php endif; ?>
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
$("a[data-toggle='tab']").click(function(){
|
|
||||||
currentTabName = $(this).attr('tab_name');
|
|
||||||
$("input[name='_current_tab']").val(currentTabName);
|
|
||||||
});
|
|
||||||
|
|
||||||
if (window.location.hash) {
|
|
||||||
$("input[name='_current_tab']").val(window.location.hash.substr(1));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php echo $__env->make('crud::inc.form_fields_script', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/form_content.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,71 +0,0 @@
|
||||||
<?php $__env->startSection('content'); ?>
|
|
||||||
<div class="row justify-content-center">
|
|
||||||
<div class="col-12 col-md-8 col-lg-4">
|
|
||||||
<h3 class="text-center mb-4"><?php echo e(trans('backpack::base.login')); ?></h3>
|
|
||||||
<div class="card">
|
|
||||||
<div class="card-body">
|
|
||||||
<form class="col-md-12 p-t-10" role="form" method="POST" action="<?php echo e(route('backpack.auth.login')); ?>">
|
|
||||||
<?php echo csrf_field(); ?>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label" for="<?php echo e($username); ?>"><?php echo e(config('backpack.base.authentication_column_name')); ?></label>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<input type="text" class="form-control<?php echo e($errors->has($username) ? ' is-invalid' : ''); ?>" name="<?php echo e($username); ?>" value="<?php echo e(old($username)); ?>" id="<?php echo e($username); ?>">
|
|
||||||
|
|
||||||
<?php if($errors->has($username)): ?>
|
|
||||||
<span class="invalid-feedback">
|
|
||||||
<strong><?php echo e($errors->first($username)); ?></strong>
|
|
||||||
</span>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label" for="password"><?php echo e(trans('backpack::base.password')); ?></label>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<input type="password" class="form-control<?php echo e($errors->has('password') ? ' is-invalid' : ''); ?>" name="password" id="password">
|
|
||||||
|
|
||||||
<?php if($errors->has('password')): ?>
|
|
||||||
<span class="invalid-feedback">
|
|
||||||
<strong><?php echo e($errors->first('password')); ?></strong>
|
|
||||||
</span>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<div>
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" name="remember"> <?php echo e(trans('backpack::base.remember_me')); ?>
|
|
||||||
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<div>
|
|
||||||
<button type="submit" class="btn btn-block btn-primary">
|
|
||||||
<?php echo e(trans('backpack::base.login')); ?>
|
|
||||||
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php if(backpack_users_have_email() && backpack_email_column() == 'email' && config('backpack.base.setup_password_recovery_routes', true)): ?>
|
|
||||||
<div class="text-center"><a href="<?php echo e(route('backpack.auth.password.reset')); ?>"><?php echo e(trans('backpack::base.forgot_your_password')); ?></a></div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if(config('backpack.base.registration_open')): ?>
|
|
||||||
<div class="text-center"><a href="<?php echo e(route('backpack.auth.register')); ?>"><?php echo e(trans('backpack::base.register')); ?></a></div>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php $__env->stopSection(); ?>
|
|
||||||
|
|
||||||
<?php echo $__env->make(backpack_view('layouts.plain'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/auth/login.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
<input type="checkbox" <?php echo $attributes->merge(['class' => 'rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50']); ?>>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/checkbox.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
<?php $attributes = $attributes->exceptProps(['active']); ?>
|
|
||||||
<?php foreach (array_filter((['active']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
||||||
$$__key = $$__key ?? $__value;
|
|
||||||
} ?>
|
|
||||||
<?php $__defined_vars = get_defined_vars(); ?>
|
|
||||||
<?php foreach ($attributes as $__key => $__value) {
|
|
||||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
||||||
} ?>
|
|
||||||
<?php unset($__defined_vars); ?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
$classes = ($active ?? false)
|
|
||||||
? 'block pl-3 pr-4 py-2 border-l-4 border-indigo-400 text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition'
|
|
||||||
: 'block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<a <?php echo e($attributes->merge(['class' => $classes])); ?>>
|
|
||||||
<?php echo e($slot); ?>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/responsive-nav-link.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
<div class="hidden sm:block">
|
|
||||||
<div class="py-8">
|
|
||||||
<div class="border-t border-gray-200"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/section-border.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
<a href="/">
|
|
||||||
<svg class="w-16 h-16" viewbox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M11.395 44.428C4.557 40.198 0 32.632 0 24 0 10.745 10.745 0 24 0a23.891 23.891 0 0113.997 4.502c-.2 17.907-11.097 33.245-26.602 39.926z" fill="#6875F5"/>
|
|
||||||
<path d="M14.134 45.885A23.914 23.914 0 0024 48c13.255 0 24-10.745 24-24 0-3.516-.756-6.856-2.115-9.866-4.659 15.143-16.608 27.092-31.75 31.751z" fill="#6875F5"/>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/authentication-card-logo.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<?php $__env->startSection('title', __('Page Expired')); ?>
|
|
||||||
<?php $__env->startSection('code', '419'); ?>
|
|
||||||
<?php $__env->startSection('message', __('Page Expired')); ?>
|
|
||||||
|
|
||||||
<?php echo $__env->make('errors::minimal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\OpenServer\domains\exchange\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions/views/419.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -53,4 +53,4 @@
|
||||||
// otherwise details_row buttons wouldn't work on subsequent pages (page 2, page 17, etc)
|
// otherwise details_row buttons wouldn't work on subsequent pages (page 2, page 17, etc)
|
||||||
crud.addFunctionToDataTablesDrawEventQueue('registerDetailsRowButtonAction');
|
crud.addFunctionToDataTablesDrawEventQueue('registerDetailsRowButtonAction');
|
||||||
</script>
|
</script>
|
||||||
<?php endif; ?><?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/inc/details_row_logic.blade.php ENDPATH**/ ?>
|
<?php endif; ?><?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/inc/details_row_logic.blade.php ENDPATH**/ ?>
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,21 +0,0 @@
|
||||||
<?php $attributes = $attributes->exceptProps(['for']); ?>
|
|
||||||
<?php foreach (array_filter((['for']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
||||||
$$__key = $$__key ?? $__value;
|
|
||||||
} ?>
|
|
||||||
<?php $__defined_vars = get_defined_vars(); ?>
|
|
||||||
<?php foreach ($attributes as $__key => $__value) {
|
|
||||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
||||||
} ?>
|
|
||||||
<?php unset($__defined_vars); ?>
|
|
||||||
|
|
||||||
<?php $__errorArgs = [$for];
|
|
||||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
|
||||||
if ($__bag->has($__errorArgs[0])) :
|
|
||||||
if (isset($message)) { $__messageOriginal = $message; }
|
|
||||||
$message = $__bag->first($__errorArgs[0]); ?>
|
|
||||||
<p <?php echo e($attributes->merge(['class' => 'text-sm text-red-600'])); ?>><?php echo e($message); ?></p>
|
|
||||||
<?php unset($message);
|
|
||||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
|
||||||
endif;
|
|
||||||
unset($__errorArgs, $__bag); ?>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/input-error.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100">
|
|
||||||
<div>
|
|
||||||
<?php echo e($logo); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-lg">
|
|
||||||
<?php echo e($slot); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/authentication-card.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php if(!empty($widgets)): ?>
|
||||||
|
<?php $__currentLoopData = $widgets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currentWidget): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||||
|
<?php
|
||||||
|
if (!is_array($currentWidget)) {
|
||||||
|
$currentWidget = $currentWidget->toArray();
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php if(isset($currentWidget['viewNamespace'])): ?>
|
||||||
|
<?php echo $__env->make($currentWidget['viewNamespace'].'.'.$currentWidget['type'], ['widget' => $currentWidget], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
||||||
|
<?php else: ?>
|
||||||
|
<?php echo $__env->make(backpack_view('widgets.'.$currentWidget['type']), ['widget' => $currentWidget], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/widgets.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
<?php if($errors->any()): ?>
|
|
||||||
<div <?php echo e($attributes); ?>>
|
|
||||||
<div class="font-medium text-red-600"><?php echo e(__('Whoops! Something went wrong.')); ?></div>
|
|
||||||
|
|
||||||
<ul class="mt-3 list-disc list-inside text-sm text-red-600">
|
|
||||||
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<li><?php echo e($error); ?></li>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/validation-errors.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
<?php $attributes = $attributes->exceptProps(['id' => null, 'maxWidth' => null]); ?>
|
|
||||||
<?php foreach (array_filter((['id' => null, 'maxWidth' => null]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
||||||
$$__key = $$__key ?? $__value;
|
|
||||||
} ?>
|
|
||||||
<?php $__defined_vars = get_defined_vars(); ?>
|
|
||||||
<?php foreach ($attributes as $__key => $__value) {
|
|
||||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
||||||
} ?>
|
|
||||||
<?php unset($__defined_vars); ?>
|
|
||||||
|
|
||||||
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
||||||
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.modal','data' => ['id' => $id,'maxWidth' => $maxWidth,'attributes' => $attributes]]); ?>
|
|
||||||
<?php $component->withName('jet-modal'); ?>
|
|
||||||
<?php if ($component->shouldRender()): ?>
|
|
||||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
||||||
<?php $component->withAttributes(['id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($id),'maxWidth' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($maxWidth),'attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($attributes)]); ?>
|
|
||||||
<div class="px-6 py-4">
|
|
||||||
<div class="text-lg">
|
|
||||||
<?php echo e($title); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mt-4">
|
|
||||||
<?php echo e($content); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="px-6 py-4 bg-gray-100 text-right">
|
|
||||||
<?php echo e($footer); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
||||||
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
||||||
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderComponent(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/dialog-modal.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<?php $__env->startSection('title', __('Page Expired')); ?>
|
|
||||||
<?php $__env->startSection('code', '419'); ?>
|
|
||||||
<?php $__env->startSection('message', __('Page Expired')); ?>
|
|
||||||
|
|
||||||
<?php echo $__env->make('errors::minimal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/exchange/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/419.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
// if not otherwise specified, the hidden input should take up no space in the form
|
|
||||||
$field['wrapper'] = $field['wrapper'] ?? $field['wrapperAttributes'] ?? [];
|
|
||||||
$field['wrapper']['class'] = $field['wrapper']['class'] ?? "hidden";
|
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php echo $__env->make('crud::fields.inc.wrapper_start', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
<input
|
|
||||||
type="hidden"
|
|
||||||
name="<?php echo e($field['name']); ?>"
|
|
||||||
value="<?php echo e(old_empty_or_null($field['name'], '') ?? $field['value'] ?? $field['default'] ?? ''); ?>"
|
|
||||||
<?php echo $__env->make('crud::fields.inc.attributes', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
>
|
|
||||||
<?php echo $__env->make('crud::fields.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/fields/hidden.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,75 +0,0 @@
|
||||||
<?php
|
|
||||||
$nonce = !empty($nonce) ? "nonce='{$nonce}'" : '';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php if(! $hasAction && $backgroundMode ): ?>
|
|
||||||
<?php if($display === false): ?>
|
|
||||||
<style <?php echo $nonce; ?>>
|
|
||||||
.grecaptcha-badge {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<?php endif; ?>
|
|
||||||
<script <?php echo $nonce; ?>>
|
|
||||||
if (!document.getElementById('gReCaptchaScript')) {
|
|
||||||
let reCaptchaScript = document.createElement('script');
|
|
||||||
reCaptchaScript.setAttribute('src', '<?php echo e($apiJsUrl); ?>?render=<?php echo e($publicKey); ?>&hl=<?php echo e($language); ?>');
|
|
||||||
reCaptchaScript.async = true;
|
|
||||||
reCaptchaScript.defer = true;
|
|
||||||
document.head.appendChild(reCaptchaScript);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($hasAction): ?>
|
|
||||||
<script <?php echo $nonce; ?>>
|
|
||||||
<?php $__currentLoopData = $mappers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $action=>$fields): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php $__currentLoopData = $fields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
var client<?php echo e($field); ?>;
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
|
|
||||||
function onloadCallback() {
|
|
||||||
<?php $__currentLoopData = $mappers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $action=>$fields): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php $__currentLoopData = $fields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
if (document.getElementById('<?php echo e($field); ?>')) {
|
|
||||||
client<?php echo e($field); ?> = grecaptcha.render('<?php echo e($field); ?>', {
|
|
||||||
'sitekey': '<?php echo e($publicKey); ?>',
|
|
||||||
<?php if($inline===true): ?> 'badge': 'inline', <?php endif; ?>
|
|
||||||
'size': 'invisible',
|
|
||||||
'hl': '<?php echo e($language); ?>',
|
|
||||||
//'callback': function() {}
|
|
||||||
});
|
|
||||||
grecaptcha.ready(function () {
|
|
||||||
grecaptcha.execute(client<?php echo e($field); ?>, {
|
|
||||||
action: '<?php echo e($action); ?>'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<script id='gReCaptchaScript' src="<?php echo e($apiJsUrl); ?>?render=<?php echo e($inline ? 'explicit' : $publicKey); ?>&onload=onloadCallback"
|
|
||||||
defer
|
|
||||||
async <?php echo $nonce; ?>></script>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<script <?php echo $nonce; ?>>
|
|
||||||
function refreshReCaptchaV3(fieldId,action){
|
|
||||||
return new Promise(function (resolve, reject) {
|
|
||||||
grecaptcha.ready(function () {
|
|
||||||
grecaptcha.execute(window['client'+fieldId], {
|
|
||||||
action: action
|
|
||||||
}).then(resolve);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function getReCaptchaV3Response(fieldId){
|
|
||||||
return grecaptcha.getResponse(window['client'+fieldId])
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/timehunter/laravel-google-recaptcha-v3/resources/views/googlerecaptchav3/template.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
|
|
||||||
<?php echo $__env->make('crud::fields.inc.wrapper_start', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
<label><?php echo $field['label']; ?></label>
|
|
||||||
<?php echo $__env->make('crud::fields.inc.translatable_icon', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
<textarea
|
|
||||||
name="<?php echo e($field['name']); ?>"
|
|
||||||
<?php echo $__env->make('crud::fields.inc.attributes', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
|
|
||||||
><?php echo e(old_empty_or_null($field['name'], '') ?? $field['value'] ?? $field['default'] ?? ''); ?></textarea>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if(isset($field['hint'])): ?>
|
|
||||||
<p class="help-block"><?php echo $field['hint']; ?></p>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->make('crud::fields.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/fields/textarea.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\resources\views/vendor/backpack/base/inc/topbar_right_content.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -11,4 +11,4 @@
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/breadcrumbs.blade.php ENDPATH**/ ?>
|
<?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\base/inc/breadcrumbs.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
|
|
||||||
<?php
|
|
||||||
$column['value'] = $column['value'] ?? data_get($entry, $column['name']);
|
|
||||||
$column['escaped'] = $column['escaped'] ?? true;
|
|
||||||
$column['prefix'] = $column['prefix'] ?? '';
|
|
||||||
$column['suffix'] = $column['suffix'] ?? '';
|
|
||||||
|
|
||||||
if($column['value'] instanceof \Closure) {
|
|
||||||
$column['value'] = $column['value']($entry);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (in_array($column['value'], [true, 1, '1'])) {
|
|
||||||
$related_key = 1;
|
|
||||||
if ( isset( $column['options'][1] ) ) {
|
|
||||||
$column['text'] = $column['options'][1];
|
|
||||||
$column['escaped'] = false;
|
|
||||||
} else {
|
|
||||||
$column['text'] = Lang::has('backpack::crud.yes') ? trans('backpack::crud.yes') : 'Yes';
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$related_key = 0;
|
|
||||||
if ( isset( $column['options'][0] ) ) {
|
|
||||||
$column['text'] = $column['options'][0];
|
|
||||||
$column['escaped'] = false;
|
|
||||||
} else {
|
|
||||||
$column['text'] = Lang::has('backpack::crud.no') ? trans('backpack::crud.no') : 'No';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$column['text'] = $column['prefix'].$column['text'].$column['suffix'];
|
|
||||||
?>
|
|
||||||
|
|
||||||
<span data-order="<?php echo e($column['value']); ?>">
|
|
||||||
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_start', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
|
||||||
<?php if($column['escaped']): ?>
|
|
||||||
<?php echo e($column['text']); ?>
|
|
||||||
|
|
||||||
<?php else: ?>
|
|
||||||
<?php echo $column['text']; ?>
|
|
||||||
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
|
||||||
</span>
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/columns/boolean.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
|
|
||||||
<?php
|
|
||||||
$column['value'] = $column['value'] ?? data_get($entry, $column['name']);
|
|
||||||
$column['escaped'] = $column['escaped'] ?? true;
|
|
||||||
$column['prefix'] = $column['prefix'] ?? '';
|
|
||||||
$column['suffix'] = $column['suffix'] ?? '';
|
|
||||||
$column['decimals'] = $column['decimals'] ?? 0;
|
|
||||||
$column['dec_point'] = $column['dec_point'] ?? '.';
|
|
||||||
$column['thousands_sep'] = $column['thousands_sep'] ?? ',';
|
|
||||||
$column['text'] = $column['default'] ?? '-';
|
|
||||||
|
|
||||||
if($column['value'] instanceof \Closure) {
|
|
||||||
$column['value'] = $column['value']($entry);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!is_null($column['value'])) {
|
|
||||||
$column['value'] = number_format($column['value'], $column['decimals'], $column['dec_point'], $column['thousands_sep']);
|
|
||||||
$column['text'] = $column['prefix'].$column['value'].$column['suffix'];
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<span>
|
|
||||||
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_start', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
|
||||||
<?php if($column['escaped']): ?>
|
|
||||||
<?php echo e($column['text']); ?>
|
|
||||||
|
|
||||||
<?php else: ?>
|
|
||||||
<?php echo $column['text']; ?>
|
|
||||||
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
|
||||||
</span>
|
|
||||||
<?php /**PATH C:\xampp\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/columns/number.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<button <?php echo e($attributes->merge(['type' => 'button', 'class' => 'inline-flex items-center justify-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 focus:outline-none focus:border-red-700 focus:ring focus:ring-red-200 active:bg-red-600 disabled:opacity-25 transition'])); ?>>
|
|
||||||
<?php echo e($slot); ?>
|
|
||||||
|
|
||||||
</button>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/danger-button.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$value = data_get($entry, $column['name']);
|
||||||
|
|
||||||
|
if($value) {
|
||||||
|
$column['height'] = $column['height'] ?? "25px";
|
||||||
|
$column['width'] = $column['width'] ?? "auto";
|
||||||
|
$column['radius'] = $column['radius'] ?? "3px";
|
||||||
|
$column['prefix'] = $column['prefix'] ?? '';
|
||||||
|
|
||||||
|
if (is_array($value)) {
|
||||||
|
$value = json_encode($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (preg_match('/^data\:image\//', $value)) { // base64_image
|
||||||
|
$href = $src = $value;
|
||||||
|
} elseif (isset($column['disk'])) { // image from a different disk (like s3 bucket)
|
||||||
|
$href = $src = Storage::disk($column['disk'])->url($column['prefix'].$value);
|
||||||
|
} else { // plain-old image, from a local disk
|
||||||
|
$href = $src = asset( $column['prefix'] . $value);
|
||||||
|
}
|
||||||
|
|
||||||
|
$column['wrapper']['element'] = $column['wrapper']['element'] ?? 'a';
|
||||||
|
$column['wrapper']['href'] = $column['wrapper']['href'] ?? $href;
|
||||||
|
$column['wrapper']['target'] = $column['wrapper']['target'] ?? '_blank';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<?php if( empty($value) ): ?>
|
||||||
|
-
|
||||||
|
<?php else: ?>
|
||||||
|
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_start', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
||||||
|
<img src="<?php echo e($src); ?>" style="
|
||||||
|
max-height: <?php echo e($column['height']); ?>;
|
||||||
|
width: <?php echo e($column['width']); ?>;
|
||||||
|
border-radius: <?php echo e($column['radius']); ?>;"
|
||||||
|
/>
|
||||||
|
<?php echo $__env->renderWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
</span>
|
||||||
|
<?php /**PATH C:\xampp2\htdocs\exchange\vendor\backpack\crud\src\resources\views\crud/columns/image.blade.php ENDPATH**/ ?>
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
<?php $attributes = $attributes->exceptProps(['on']); ?>
|
|
||||||
<?php foreach (array_filter((['on']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
||||||
$$__key = $$__key ?? $__value;
|
|
||||||
} ?>
|
|
||||||
<?php $__defined_vars = get_defined_vars(); ?>
|
|
||||||
<?php foreach ($attributes as $__key => $__value) {
|
|
||||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
||||||
} ?>
|
|
||||||
<?php unset($__defined_vars); ?>
|
|
||||||
|
|
||||||
<div x-data="{ shown: false, timeout: null }"
|
|
||||||
x-init="@this.on('<?php echo e($on); ?>', () => { clearTimeout(timeout); shown = true; timeout = setTimeout(() => { shown = false }, 2000); })"
|
|
||||||
x-show.transition.opacity.out.duration.1500ms="shown"
|
|
||||||
style="display: none;"
|
|
||||||
<?php echo e($attributes->merge(['class' => 'text-sm text-gray-600'])); ?>>
|
|
||||||
<?php echo e($slot->isEmpty() ? 'Saved.' : $slot); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/action-message.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<?php $__env->startSection('title', __('Server Error')); ?>
|
|
||||||
<?php $__env->startSection('code', '500'); ?>
|
|
||||||
<?php $__env->startSection('message', __('Server Error')); ?>
|
|
||||||
|
|
||||||
<?php echo $__env->make('errors::minimal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/exchange/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/500.blade.php ENDPATH**/ ?>
|
|
||||||
|
|
@ -1,112 +0,0 @@
|
||||||
<?php if($paginator->hasPages()): ?>
|
|
||||||
<nav role="navigation" aria-label="<?php echo e(__('Pagination Navigation')); ?>" class="flex items-center justify-between">
|
|
||||||
<div class="flex justify-between flex-1 sm:hidden">
|
|
||||||
<?php if($paginator->onFirstPage()): ?>
|
|
||||||
<span class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
|
|
||||||
<?php echo __('pagination.previous'); ?>
|
|
||||||
|
|
||||||
</span>
|
|
||||||
<?php else: ?>
|
|
||||||
<a href="<?php echo e($paginator->previousPageUrl()); ?>" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
|
|
||||||
<?php echo __('pagination.previous'); ?>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if($paginator->hasMorePages()): ?>
|
|
||||||
<a href="<?php echo e($paginator->nextPageUrl()); ?>" class="relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
|
|
||||||
<?php echo __('pagination.next'); ?>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
<?php else: ?>
|
|
||||||
<span class="relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
|
|
||||||
<?php echo __('pagination.next'); ?>
|
|
||||||
|
|
||||||
</span>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
|
|
||||||
<div>
|
|
||||||
<p class="text-sm text-gray-700 leading-5">
|
|
||||||
<?php echo __('Showing'); ?>
|
|
||||||
|
|
||||||
<span class="font-medium"><?php echo e($paginator->firstItem()); ?></span>
|
|
||||||
<?php echo __('to'); ?>
|
|
||||||
|
|
||||||
<span class="font-medium"><?php echo e($paginator->lastItem()); ?></span>
|
|
||||||
<?php echo __('of'); ?>
|
|
||||||
|
|
||||||
<span class="font-medium"><?php echo e($paginator->total()); ?></span>
|
|
||||||
<?php echo __('results'); ?>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<span class="relative z-0 inline-flex shadow-sm rounded-md">
|
|
||||||
|
|
||||||
<?php if($paginator->onFirstPage()): ?>
|
|
||||||
<span aria-disabled="true" aria-label="<?php echo e(__('pagination.previous')); ?>">
|
|
||||||
<span class="relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-l-md leading-5" aria-hidden="true">
|
|
||||||
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
|
|
||||||
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
<?php else: ?>
|
|
||||||
<a href="<?php echo e($paginator->previousPageUrl()); ?>" rel="prev" class="relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-l-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150" aria-label="<?php echo e(__('pagination.previous')); ?>">
|
|
||||||
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
|
|
||||||
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
|
|
||||||
<?php if(is_string($element)): ?>
|
|
||||||
<span aria-disabled="true">
|
|
||||||
<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 cursor-default leading-5"><?php echo e($element); ?></span>
|
|
||||||
</span>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if(is_array($element)): ?>
|
|
||||||
<?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php if($page == $paginator->currentPage()): ?>
|
|
||||||
<span aria-current="page">
|
|
||||||
<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5"><?php echo e($page); ?></span>
|
|
||||||
</span>
|
|
||||||
<?php else: ?>
|
|
||||||
<a href="<?php echo e($url); ?>" class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 hover:text-gray-500 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150" aria-label="<?php echo e(__('Go to page :page', ['page' => $page])); ?>">
|
|
||||||
<?php echo e($page); ?>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($paginator->hasMorePages()): ?>
|
|
||||||
<a href="<?php echo e($paginator->nextPageUrl()); ?>" rel="next" class="relative inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-r-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150" aria-label="<?php echo e(__('pagination.next')); ?>">
|
|
||||||
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
|
|
||||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<?php else: ?>
|
|
||||||
<span aria-disabled="true" aria-label="<?php echo e(__('pagination.next')); ?>">
|
|
||||||
<span class="relative inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-r-md leading-5" aria-hidden="true">
|
|
||||||
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
|
|
||||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
<?php endif; ?>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php /**PATH /var/www/exchange/vendor/laravel/framework/src/Illuminate/Pagination/resources/views/tailwind.blade.php ENDPATH**/ ?>
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue