namespace App;
+use Backpack\CRUD\app\Models\Traits\CrudTrait;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
+use Spatie\Permission\Traits\HasRoles;
class User extends Authenticatable
{
use Notifiable;
+ use CrudTrait; // <----- this
+ use HasRoles;
/**
* The attributes that are mass assignable.
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "bd85e5864dcc7dc313035d8cc9ec04d7",
+ "content-hash": "f821ecd1f86603733fc92ca110fa90df",
"packages": [
{
"name": "backpack/backupmanager",
"source": {
"type": "git",
"url": "git://git.cubedesigners.com/cubist_cms-back.git",
- "reference": "bb1b01ffc3f10d06eab62ed71f18e0c60f24f53a"
+ "reference": "1f2b9016eea7ece363abb69d7e41def024a515d6"
},
"dist": {
"type": "tar",
- "url": "https://composer.cubedesigners.com/dist/cubist/cms-back/cubist-cms-back-dev-master-ccd096.tar",
- "reference": "bb1b01ffc3f10d06eab62ed71f18e0c60f24f53a",
- "shasum": "2968c01633653065562d6323e15d04319ecb88df"
+ "url": "https://composer.cubedesigners.com/dist/cubist/cms-back/cubist-cms-back-dev-master-2d1ce7.tar",
+ "reference": "1f2b9016eea7ece363abb69d7e41def024a515d6",
+ "shasum": "4f5ce3d2b5f4232826a42535141318d97efe926a"
},
"require": {
"backpack/backupmanager": "^2.0",
"barryvdh/laravel-debugbar": "^3.2",
"chrisjean/php-ico": "^1.0",
"cubist/cms-front": "dev-master",
+ "cubist/laravel-backpack-dropzone-field": "dev-master",
"cubist/locale": "dev-master",
"cubist/util": "dev-master",
"cviebrock/eloquent-sluggable": "^6.0",
"ext-json": "*",
"ext-libxml": "*",
"fideloper/proxy": "^4.2",
- "gaspertrix/laravel-backpack-dropzone-field": "^1.0",
"graham-campbell/markdown": "^11.0",
"lavary/laravel-menu": "^1.7",
"league/commonmark-ext-autolink": "^1.0",
}
],
"description": "Cubist Backpack extension",
- "time": "2020-01-28T16:51:22+00:00"
+ "time": "2020-02-26T16:22:36+00:00"
},
{
"name": "cubist/cms-front",
],
"time": "2020-01-28T15:30:32+00:00"
},
+ {
+ "name": "cubist/laravel-backpack-dropzone-field",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "git://git.cubedesigners.com/cubist_laravel-backpack-dropzone-field.git",
+ "reference": "0090cd81f20263226fd2c072f351c596b663bfa5"
+ },
+ "dist": {
+ "type": "tar",
+ "url": "https://composer.cubedesigners.com/dist/cubist/laravel-backpack-dropzone-field/cubist-laravel-backpack-dropzone-field-dev-master-17ac7a.tar",
+ "reference": "0090cd81f20263226fd2c072f351c596b663bfa5",
+ "shasum": "6a7bc9acffb9e0ff0898e17a7b3e9cc36e4c42ff"
+ },
+ "require": {
+ "backpack/crud": "^4.0.0",
+ "spatie/laravel-medialibrary": "^7.0.0"
+ },
+ "type": "library",
+ "extra": {
+ "laravel": {
+ "providers": [
+ "Gaspertrix\\Backpack\\DropzoneField\\DropzoneFieldServiceProvider"
+ ]
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Gaspertrix\\Backpack\\DropzoneField\\": "src"
+ }
+ },
+ "autoload-dev": {
+ "psr-4": []
+ },
+ "scripts": {
+ "test": [
+ "phpunit"
+ ]
+ },
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Adrian Sacchi",
+ "email": "adrian@gaspertrix.com",
+ "homepage": "https://www.gaspertrix.com/",
+ "role": "Developer"
+ }
+ ],
+ "description": "Add Dropzone support for Laravel Backpack",
+ "homepage": "https://github.com/gaspertrix/laravel-backpack-dropzone-field",
+ "keywords": [
+ "backpack",
+ "dropzone",
+ "files",
+ "gaspertrix",
+ "laravel",
+ "media",
+ "upload"
+ ],
+ "time": "2020-02-26T16:15:04+00:00"
+ },
{
"name": "cubist/locale",
"version": "dev-master",
],
"time": "2020-02-22T01:51:47+00:00"
},
- {
- "name": "gaspertrix/laravel-backpack-dropzone-field",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Gaspertrix/laravel-backpack-dropzone-field.git",
- "reference": "748ea429aab4d67decaf14cf36f64fa04ba28f43"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Gaspertrix/laravel-backpack-dropzone-field/zipball/748ea429aab4d67decaf14cf36f64fa04ba28f43",
- "reference": "748ea429aab4d67decaf14cf36f64fa04ba28f43",
- "shasum": ""
- },
- "require": {
- "backpack/crud": "*",
- "spatie/laravel-medialibrary": "^7.0.0"
- },
- "type": "library",
- "extra": {
- "laravel": {
- "providers": [
- "Gaspertrix\\Backpack\\DropzoneField\\DropzoneFieldServiceProvider"
- ]
- }
- },
- "autoload": {
- "psr-4": {
- "Gaspertrix\\Backpack\\DropzoneField\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Adrian Sacchi",
- "email": "adrian@gaspertrix.com",
- "homepage": "https://www.gaspertrix.com/",
- "role": "Developer"
- }
- ],
- "description": "Add Dropzone support for Laravel Backpack",
- "homepage": "https://github.com/gaspertrix/laravel-backpack-dropzone-field",
- "keywords": [
- "backpack",
- "dropzone",
- "files",
- "gaspertrix",
- "laravel",
- "media",
- "upload"
- ],
- "time": "2018-10-27T03:15:36+00:00"
- },
{
"name": "graham-campbell/markdown",
"version": "v11.2.0",
],
"time": "2019-11-29T22:36:02+00:00"
},
+ {
+ "name": "org_heigl/ghostscript",
+ "version": "2.3.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/heiglandreas/Org_Heigl_Ghostscript.git",
+ "reference": "2bcd115f047589c28243a66e6bbea993fc91da21"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/heiglandreas/Org_Heigl_Ghostscript/zipball/2bcd115f047589c28243a66e6bbea993fc91da21",
+ "reference": "2bcd115f047589c28243a66e6bbea993fc91da21",
+ "shasum": ""
+ },
+ "require-dev": {
+ "mockery/mockery": "^1.0",
+ "phpdocumentor/phpdocumentor": "^2.9",
+ "phpunit/phpunit": "^5.5||^6.0||^7.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Org_Heigl\\Ghostscript\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Andreas Heigl",
+ "email": "andreas@heigl.org"
+ }
+ ],
+ "description": "A PHP-Wrapper around the Ghostscript-CLI",
+ "time": "2018-02-22T08:37:21+00:00"
+ },
{
"name": "paragonie/random_compat",
"version": "v9.99.99",
},
{
"name": "spatie/browsershot",
- "version": "3.34.0",
+ "version": "3.26.0",
"source": {
"type": "git",
"url": "https://github.com/spatie/browsershot.git",
- "reference": "483f62d03ea8cfc20091b9c2db1ed3f597d659f1"
+ "reference": "42dd2120577d9a4c6937773d7a233fffe72a06c7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/spatie/browsershot/zipball/483f62d03ea8cfc20091b9c2db1ed3f597d659f1",
- "reference": "483f62d03ea8cfc20091b9c2db1ed3f597d659f1",
+ "url": "https://api.github.com/repos/spatie/browsershot/zipball/42dd2120577d9a4c6937773d7a233fffe72a06c7",
+ "reference": "42dd2120577d9a4c6937773d7a233fffe72a06c7",
"shasum": ""
},
"require": {
"php": "^7.1",
- "spatie/image": "^1.5.3",
+ "spatie/image": "^1.4",
"spatie/temporary-directory": "^1.1",
- "symfony/process": "^4.2|^5.0"
+ "symfony/process": "^3.0|^4.0"
},
"require-dev": {
- "phpunit/phpunit": "^6.1|^7.5",
+ "phpunit/phpunit": "^6.1|^7.0",
"spatie/phpunit-snapshot-assertions": "^1.0"
},
"type": "library",
"screenshot",
"webpage"
],
- "time": "2020-01-04T22:37:18+00:00"
+ "time": "2018-10-18T17:24:07+00:00"
},
{
"name": "spatie/crawler",
},
{
"name": "spatie/image",
- "version": "1.7.6",
+ "version": "1.5.2",
"source": {
"type": "git",
"url": "https://github.com/spatie/image.git",
- "reference": "74535b5fd67ace75840c00c408666660843e755e"
+ "reference": "d4cb6afff1b98fd6e17396d91e0e584c3d91bb23"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/spatie/image/zipball/74535b5fd67ace75840c00c408666660843e755e",
- "reference": "74535b5fd67ace75840c00c408666660843e755e",
+ "url": "https://api.github.com/repos/spatie/image/zipball/d4cb6afff1b98fd6e17396d91e0e584c3d91bb23",
+ "reference": "d4cb6afff1b98fd6e17396d91e0e584c3d91bb23",
"shasum": ""
},
"require": {
- "ext-exif": "*",
- "ext-mbstring": "*",
- "league/glide": "^1.4",
+ "league/glide": "^1.2",
"php": "^7.0",
"spatie/image-optimizer": "^1.0",
"spatie/temporary-directory": "^1.0.0",
- "symfony/process": "^3.0|^4.0|^5.0"
+ "symfony/process": "^3.0|^4.0"
},
"require-dev": {
"larapack/dd": "^1.1",
"phpunit/phpunit": "^6.0|^7.0",
- "symfony/var-dumper": "^3.2|^5.0"
+ "symfony/var-dumper": "^3.2"
},
"type": "library",
"autoload": {
"image",
"spatie"
],
- "time": "2020-01-26T18:56:44+00:00"
+ "time": "2018-05-05T21:44:52+00:00"
},
{
"name": "spatie/image-optimizer",
},
{
"name": "spatie/pdf-to-image",
- "version": "2.0.0",
+ "version": "v2.x-dev",
"source": {
"type": "git",
"url": "https://github.com/spatie/pdf-to-image.git",
- "reference": "67136abe0db0540b4f29bb461389917ffa1b7e37"
+ "reference": "6718a89065c34dfadfbb2ca61eb1c3e6a956e503"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/spatie/pdf-to-image/zipball/67136abe0db0540b4f29bb461389917ffa1b7e37",
- "reference": "67136abe0db0540b4f29bb461389917ffa1b7e37",
+ "url": "https://api.github.com/repos/spatie/pdf-to-image/zipball/6718a89065c34dfadfbb2ca61eb1c3e6a956e503",
+ "reference": "6718a89065c34dfadfbb2ca61eb1c3e6a956e503",
"shasum": ""
},
"require": {
- "ext-imagick": "*",
- "php": "^7.2"
+ "org_heigl/ghostscript": "^2.2",
+ "php": "^7.0"
},
"require-dev": {
- "phpunit/phpunit": "^8.0"
+ "phpunit/phpunit": "^6.2",
+ "spatie/temporary-directory": "^1.1"
},
"type": "library",
"autoload": {
"pdf-to-image",
"spatie"
],
- "time": "2020-01-08T00:13:23+00:00"
+ "time": "2017-06-20T05:58:45+00:00"
},
{
"name": "spatie/robots-txt",
|
*/
- 'name' => env('APP_NAME', 'Laravel'),
+ 'name' => env('APP_NAME', 'Quiz Factory'),
/*
|--------------------------------------------------------------------------
// ----
// Project name. Shown in the window title.
- 'project_name' => 'Backpack Admin Panel',
+ 'project_name' => 'Quiz Factory',
// When clicking on the admin panel's top-left logo/name,
// where should the user be redirected?
// The string below will be passed through the url() helper.
// - default: '' (project root)
// - alternative: 'admin' (the admin's dashboard)
- 'home_link' => '',
+ 'home_link' => 'admin',
// Content of the HTML meta robots tag to prevent indexing and link following
'meta_robots_content' => 'noindex, nofollow',
// ------
// Menu logo. You can replace this with an <img> tag if you have a logo.
- 'project_logo' => '<b>Back</b>pack',
+ 'project_logo' => '<b>QUIZ</b> FACTORY',
// Show / hide breadcrumbs on admin panel pages.
'breadcrumbs' => true,
// Horizontal navbar classes. Helps make the admin panel look similar to your project's design.
- 'header_class' => 'app-header bg-light border-0 navbar',
+ 'header_class' => 'app-header bg-purple border-0 navbar navbar-color',
// For background colors use: bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success, bg-info, bg-blue, bg-light-blue, bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan, bg-white
// For links to be visible on different background colors use: "navbar-dark", "navbar-light", "navbar-color"
// change background color with bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success, bg-info, bg-blue, bg-light-blue, bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan, bg-white
// Developer or company name. Shown in footer.
- 'developer_name' => 'Cristian Tabacitu',
+ 'developer_name' => 'Cubedesigners',
// Developer website. Link in footer. Type false if you want to hide it.
- 'developer_link' => 'http://tabacitu.ro',
+ 'developer_link' => 'https://www.cubedesigners.com',
// Show powered by Laravel Backpack in the footer? true/false
- 'show_powered_by' => true,
+ 'show_powered_by' => false,
// -------
// SCRIPTS
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'نسخة احتياطية',
+ 'create_a_new_backup' => 'إنشاء نسخة احتياطية جديدة',
+ 'existing_backups' => 'النسخ الاحتياطية الموجودة',
+ 'date' => 'التاريخ',
+ 'file_size' => 'حجم الملف',
+ 'actions' => 'اجراءات',
+ 'download' => 'تحميل',
+ 'delete' => 'حذف',
+ 'delete_confirm' => 'هل انت متأكد من حذف النسخة الاحتياطية؟',
+ 'delete_confirmation_title' => 'تم بالنجاح',
+ 'delete_confirmation_message' => 'تم حذف ملف النسخة الاحتياطية',
+ 'delete_error_title' => 'هناك خطأ',
+ 'delete_error_message' => 'ملف النسخة الاحتياطية لم يتم حذفه.',
+ 'delete_cancel_title' => 'كل شيئ على مايرام.',
+ 'delete_cancel_message' => 'ملف النسخة الاحتياطية لم يتم حذفه.',
+ 'create_confirmation_title' => 'تم عمل النسخ الاحتياطية بالنجاح',
+ 'create_confirmation_message' => 'سيتم اعادة اعادة تحميل الصفحة خلال 3 ثواني.',
+ 'create_error_title' => 'هناك خطأ في النسخة الاحتياطية',
+ 'create_error_message' => 'لا يمكن إنشاء ملف النسخة الاحتياطية.',
+ 'create_warning_title' => 'هناك خطأ غير معروف',
+ 'create_warning_message' => 'ربما لم يتم إنشاء النسخة الاحتياطية. يرجى التحقق من ملفات السجل للحصول على التفاصيل.',
+ 'location' => 'الموقع',
+ 'no_disks_configured' => 'لايوجد أقراص تم تحددها في ملف config/backup.php',
+ 'backup_doesnt_exist' => 'ملف النسخ الاحتياطي غير موجود.',
+ 'only_local_downloads_supported' => 'لايمكن تحميل النسخة الاحتياطية الا من القرص المحلي.',
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: ِAhmed Barabbud <a.a.barbod@gmail.com>
+ |
+ */
+ 'name' => 'اسم',
+ 'role' => 'وظيفة',
+ 'roles' => 'وظائف',
+ 'roles_have_permission' => 'الوظائف التي لديها هذه الصلاحية',
+ 'permission_singular' => 'الصلاحية',
+ 'permission_plural' => 'الصلاحيات',
+ 'user_singular' => 'المستخدم',
+ 'user_plural' => 'المستخدمين',
+ 'email' => 'البريد الالكتروني',
+ 'extra_permissions' => 'الصلاحيات الاضافية',
+ 'password' => 'كلمة المرور',
+ 'password_confirmation' => 'تأكيد كلمة المرور',
+ 'user_role_permission' => 'صلاحيات دور المستخدم',
+ 'user' => 'المستخدم',
+ 'users' => 'المستخدمين',
+ 'guard_type' => 'نوع الحماية',
+
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: Frederik Rabøl Madsen <frederik-rm@hotmail.com>
+ |
+ */
+ 'name' => 'navn',
+ 'role' => 'rolle',
+ 'roles' => 'roller',
+ 'roles_have_permission' => 'roller der har denne rettighed',
+ 'permission_singular' => 'rettighed',
+ 'permission_plural' => 'rettigheder',
+ 'user_singular' => 'bruger',
+ 'user_plural' => 'brugere',
+ 'email' => 'E-mail',
+ 'extra_permissions' => 'yderligere rettigheder',
+ 'password' => 'password',
+ 'password_confirmation' => 'gentag password',
+ 'user_role_permission' => 'bruger rolle rettigheder',
+ 'user' => 'bruger',
+ 'users' => 'brugere',
+
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: Oliver Ziegler <oliver.ziegler@zoutapps.de>
+ |
+ */
+ 'name' => 'Name',
+ 'role' => 'Rolle',
+ 'roles' => 'Rollen',
+ 'roles_have_permission' => 'Rollen mit dieser Berechtigung',
+ 'permission_singular' => 'Berechtigung',
+ 'permission_plural' => 'Berechtigungen',
+ 'user_singular' => 'Nutzer',
+ 'user_plural' => 'Nutzer',
+ 'email' => 'E-Mail',
+ 'extra_permissions' => 'Zusätzliche Berechtigungen',
+ 'password' => 'Passwort',
+ 'password_confirmation' => 'Passwort bestätigen',
+ 'user_role_permission' => 'Nutzer Rollen Berechtigungen',
+ 'user' => 'Nutzer',
+ 'users' => 'Nutzer',
+
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ |
+ */
+ 'name' => 'Όνομα',
+ 'role' => 'Ρόλος',
+ 'roles' => 'Ρόλοι',
+ 'roles_have_permission' => 'Ρόλοι με αυτό το δικαίωμα',
+ 'permission_singular' => 'δικαίωμα',
+ 'permission_plural' => 'Δικαιώματα',
+ 'user_singular' => 'Χρήστης',
+ 'user_plural' => 'Χρήστες',
+ 'email' => 'Email',
+ 'extra_permissions' => 'Πρόσθετα δικαιώματα',
+ 'password' => 'Κωδικός',
+ 'password_confirmation' => 'Επανάληψη κωδικού',
+ 'user_role_permission' => 'Ρόλοι και Δικαιώματα Χρήστη',
+ 'user' => 'Χρήστης',
+ 'users' => 'Χρήστες',
+
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'Backup',
+ 'create_a_new_backup' => 'Create a new backup',
+ 'existing_backups' => 'Existing backups',
+ 'date' => 'Date',
+ 'file_size' => 'File size',
+ 'actions' => 'Actions',
+ 'download' => 'Download',
+ 'delete' => 'Delete',
+ 'delete_confirm' => 'Are your sure you want to delete this backup file?',
+ 'delete_confirmation_title' => 'Done',
+ 'delete_confirmation_message' => 'The backup file was deleted.',
+ 'delete_error_title' => 'Error',
+ 'delete_error_message' => 'The backup file has NOT been deleted.',
+ 'delete_cancel_title' => "It's ok",
+ 'delete_cancel_message' => 'The backup file has NOT been deleted.',
+ 'create_confirmation_title' => 'Backup process started',
+ 'create_confirmation_message' => 'Please wait a few minutes for it to complete, then refresh the page.',
+ 'create_error_title' => 'Backup error',
+ 'create_error_message' => 'The backup file could NOT be created.',
+ 'create_warning_title' => 'Unknown error',
+ 'create_warning_message' => 'Your backup may NOT have been created. Please check log files for details.',
+ 'location' => 'Location',
+ 'no_disks_configured' => 'No backup disks configured in config/backup.php',
+ 'backup_doesnt_exist' => "The backup file doesn't exist.",
+ 'only_local_downloads_supported' => 'Only downloads from the Local filesystem are supported.',
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: Lúdio Oliveira <ludio.ao@gmail.com>
+ |
+ */
+ 'name' => 'Name',
+ 'role' => 'Role',
+ 'roles' => 'Roles',
+ 'roles_have_permission' => 'Roles that have this permission',
+ 'permission_singular' => 'permission',
+ 'permission_plural' => 'permissions',
+ 'user_singular' => 'User',
+ 'user_plural' => 'Users',
+ 'email' => 'Email',
+ 'extra_permissions' => 'Extra Permissions',
+ 'password' => 'Password',
+ 'password_confirmation' => 'Password Confirmation',
+ 'user_role_permission' => 'User Role Permissions',
+ 'user' => 'User',
+ 'users' => 'Users',
+ 'guard_type' => 'Guard Type',
+
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'Copia de seguridad',
+ 'create_a_new_backup' => 'Crear una copia de seguridad',
+ 'existing_backups' => 'Copias de seguridad existentes',
+ 'date' => 'Fecha',
+ 'file_size' => 'Tamaño del fichero',
+ 'actions' => 'Acciones',
+ 'download' => 'Descargar',
+ 'delete' => 'Eliminar',
+ 'delete_confirm' => '¿Estás seguro que quieres borrar esta copia de seguridad?',
+ 'delete_confirmation_title' => 'Confirmado',
+ 'delete_confirmation_message' => 'La copia de seguridad fue eliminada.',
+ 'delete_error_title' => 'Ups, ha ocurrido un error',
+ 'delete_error_message' => 'La copia de seguridad NO se pudo eliminar.',
+ 'delete_cancel_title' => 'La operación ha sido cancelada',
+ 'delete_cancel_message' => 'La copia de seguridad NO se pudo eliminar.',
+ 'create_confirmation_title' => 'Se ha completado la copia de seguridad',
+ 'create_confirmation_message' => 'Recargando la página en 3 segundos.',
+ 'create_error_title' => 'Error al realizar la copia de seguridad',
+ 'create_error_message' => 'La copia de seguridad NO se pudo crear.',
+ 'create_warning_title' => 'Estamos presentando problemas',
+ 'create_warning_message' => 'La copia de seguridad puede que no se haya realizado. Por favor verifica los logs para más detalles.',
+ 'location' => 'Ubicación',
+ 'no_disks_configured' => 'No existe ningún disco configurado config/backup.php',
+ 'backup_doesnt_exist' => 'La copia de seguridad no existe.',
+ 'only_local_downloads_supported' => 'Solo se permiten descargas del sistema de archivos local.',
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ |
+ */
+ 'name' => 'Nombre',
+ 'role' => 'Rol',
+ 'roles' => 'Roles',
+ 'roles_have_permission' => 'Roles con este permiso',
+ 'permission_singular' => 'Permiso',
+ 'permission_plural' => 'Permisos',
+ 'user_singular' => 'Usuario',
+ 'user_plural' => 'Usuarios',
+ 'email' => 'Correo electrónico',
+ 'extra_permissions' => 'Permisos adicionales',
+ 'password' => 'Contraseña',
+ 'password_confirmation' => 'Confirmación de contraseña',
+ 'user_role_permission' => 'Permisos del rol del usuario',
+ 'user' => 'Usuario',
+ 'users' => 'Usuarios',
+
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'پشتیبان',
+ 'create_a_new_backup' => 'ایجاد پشتیبان جدید',
+ 'existing_backups' => 'پشتیبانهای موجود',
+ 'date' => 'تاریخ',
+ 'file_size' => 'سایز پرونده',
+ 'actions' => 'عملیات',
+ 'download' => 'بارگیری',
+ 'delete' => 'حذف',
+ 'delete_confirm' => 'آیا شما از حذف این پرونده پشتیبان اطمینان دارید؟',
+ 'delete_confirmation_title' => 'انجام شد',
+ 'delete_confirmation_message' => 'پرونده پشتیبان با موفقیت حذف شد.',
+ 'delete_error_title' => 'خطا',
+ 'delete_error_message' => 'پرونده پشتیبان حذف نشده است.',
+ 'delete_cancel_title' => 'مشکلی نیست',
+ 'delete_cancel_message' => 'پرونده پشتیبان حذف نشده است.',
+ 'create_confirmation_title' => 'فرآیند پشتیبانگیری شروع شد.',
+ 'create_confirmation_message' => 'لطفا چند دقیقه صبر کنید تا کامل شود ، سپس صفحه را تازه کنید.',
+ 'create_error_title' => 'خطا پشتیبان',
+ 'create_error_message' => 'فایل پشتیبان نمیتواند ساخته شود.',
+ 'create_warning_title' => 'خطای نا مشخص',
+ 'create_warning_message' => 'نسخه پشتیبان شما ممکن است ایجاد نشده باشد. لطفاً پرونده ها را برای جزئیات بیشتر بررسی کنید.',
+ 'location' => 'محل',
+ 'no_disks_configured' => 'دیسک پشتیبانی در config/backup.php تنظیم نشده است.',
+ 'backup_doesnt_exist' => 'پرونده پشتیبان وجود ندارد.',
+ 'only_local_downloads_supported' => 'تنها دانلود از سیستمفایل محلی پشتیبانی میشود',
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'Sauvegarde',
+ 'create_a_new_backup' => 'Créer une nouvelle sauvegarde',
+ 'existing_backups' => 'Sauvegardes existantes',
+ 'date' => 'Date',
+ 'file_size' => 'Taille de fichier',
+ 'actions' => 'Actions',
+ 'download' => 'Télécharger',
+ 'delete' => 'Supprimer',
+ 'delete_confirm' => 'Etes-vous certain de vouloir supprimer ce fichier ?',
+ 'delete_confirmation_title' => 'Fait',
+ 'delete_confirmation_message' => 'Le fichier de sauvegarde a été supprimmé.',
+ 'delete_error_title' => 'Erreur',
+ 'delete_error_message' => 'Le fichier de sauvegarde n\'a PAS été supprimmé.',
+ 'delete_cancel_title' => "C'est ok",
+ 'delete_cancel_message' => 'Le fichier de sauvegarde n\'a PAS été supprimmé.',
+ 'create_confirmation_title' => 'Sauvegarde terminée',
+ 'create_confirmation_message' => 'Rechargement de cette page dans 3 secondes.',
+ 'create_error_title' => 'Erreur de sauvegarde',
+ 'create_error_message' => 'Le fichier de sauvegarde n\'a PAS pu être créer.',
+ 'create_warning_title' => 'Erreur inconnue',
+ 'create_warning_message' => 'Votre fichier de sauvegarde n\'a sans doute pas pu être créé. Regardez les logs pour plus de details.',
+ 'location' => 'Emplacement',
+ 'no_disks_configured' => 'Aucun "backup disks" de configuré dans config/backup.php',
+ 'backup_doesnt_exist' => "Le fichier de sauvegarde n'existe pas.",
+ 'only_local_downloads_supported' => 'Seuls les téléchargments à partir du système de fichier local sont supportés.',
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: Julien Cauvin <contact@7ute.fr>
+ |
+ */
+ 'name' => 'Nom',
+ 'role' => 'Rôle',
+ 'roles' => 'Rôles',
+ 'roles_have_permission' => 'Rôles avec cette permission',
+ 'permission_singular' => 'permission',
+ 'permission_plural' => 'permissions',
+ 'user_singular' => 'Utilisateur',
+ 'user_plural' => 'Utilisateurs',
+ 'email' => 'Email',
+ 'extra_permissions' => 'Permissions supplémentaires',
+ 'password' => 'Mot de passe',
+ 'password_confirmation' => 'Confirmation du mot de passe',
+ 'user_role_permission' => 'Rôles et permissions d’utilisateur',
+ 'user' => 'Utilisateur',
+ 'users' => 'Utilisateurs',
+
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: Julien Cauvin <contact@7ute.fr>
+ |
+ */
+ 'name' => 'Nom',
+ 'role' => 'Rôle',
+ 'roles' => 'Rôles',
+ 'roles_have_permission' => 'Rôles avec cette permission',
+ 'permission_singular' => 'permission',
+ 'permission_plural' => 'permissions',
+ 'user_singular' => 'Utilisateur',
+ 'user_plural' => 'Utilisateurs',
+ 'email' => 'Email',
+ 'extra_permissions' => 'Permissions supplémentaires',
+ 'password' => 'Mot de passe',
+ 'password_confirmation' => 'Confirmation du mot de passe',
+ 'user_role_permission' => 'Rôles et permissions d’utilisateur',
+ 'user' => 'Utilisateur',
+ 'users' => 'Utilisateurs',
+
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'Αντίγραφο ασφαλείας',
+ 'backups' => 'Αντίγραφα ασφαλείας', // Added plural
+ 'create_a_new_backup' => 'Δημιουργία νέου αντιγράφου ασφαλείας',
+ 'existing_backups' => 'Υπάρχοντα αντίγραφα ασφαλείας',
+ 'date' => 'Ημερομηνία',
+ 'file_size' => 'Μέγεθος Αρχείου',
+ 'actions' => 'Ενέργειες',
+ 'download' => 'Λήψη',
+ 'delete' => 'Διαγραφή',
+ 'delete_confirm' => 'Είστε σίγουρος/η πως θέλετε να διαγράψετε αυτό το αντίγραφο ασφαλείας?',
+ 'delete_confirmation_title' => 'Η ενέργεια πραγματοποιήθηκε',
+ 'delete_confirmation_message' => 'Το αντίγραφο ασφαλείας διαγράφηκε.',
+ 'delete_error_title' => 'Σφάλμα',
+ 'delete_error_message' => 'Το αντίγραφο ασφαλείας ΔΕΝ έχει διαγραφεί.',
+ 'delete_cancel_title' => 'Να πραγματοποιηθεί η διαγραφή',
+ 'delete_cancel_message' => 'Το αντίγραφο ασφαλείας ΔΕΝ έχει διαγραφεί.',
+ 'create_confirmation_title' => 'Η δημιουργία αντιγράφου ασφαλείας έχει ολοκληρωθεί',
+ 'create_confirmation_message' => 'Επαναφόρτωση της σελίδας σε 3 δευτερόλεπτα.',
+ 'create_error_title' => 'Σφάλμα αντιγράφου ασφαλείας',
+ 'create_error_message' => 'Το αντίγραφο ασφαλείας ΔΕΝ μπόρεσε να δημιουργηθεί.',
+ 'create_warning_title' => 'Άγνωστο σφάλμα',
+ 'create_warning_message' => 'Το αντίγραφο ασφαλείας μπορεί να μην έχει δημιουργηθεί. Παρακαλώ ελέγξτε τα αρχεία καταγραφής για λεπτομέρειες.',
+ 'location' => 'Τοποθεσία',
+ 'no_disks_configured' => 'Δεν έχει οριστεί κανένας δίσκος για αντίγραφα ασφαλείας στο config/backup.php',
+ 'backup_doesnt_exist' => 'Το αντίγραφο ασφαλείας δεν υφίσταται.',
+ 'only_local_downloads_supported' => 'Υποστηρίζονται λήψεις μόνο από το τοπικό σύστημα αρχείων.',
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'Cadangkan',
+ 'create_a_new_backup' => 'Buat cadangan baru',
+ 'existing_backups' => 'Backup yang ada',
+ 'date' => 'Tanggal',
+ 'file_size' => 'Ukuran file',
+ 'actions' => 'Aksi',
+ 'download' => 'Unduh',
+ 'delete' => 'Hapus',
+ 'delete_confirm' => 'Anda yakin ingin menghapus file cadangan ini?',
+ 'delete_confirmation_title' => 'Selesai',
+ 'delete_confirmation_message' => 'File cadangan telah dihapus.',
+ 'delete_error_title' => 'Terjadi kesalahan',
+ 'delete_error_message' => 'File cadangan TIDAK dihapus.',
+ 'delete_cancel_title' => 'Tidak apa-apa',
+ 'delete_cancel_message' => 'File cadangan TIDAK dihapus.',
+ 'create_confirmation_title' => 'Proses pencadangan dimulai',
+ 'create_confirmation_message' => 'Harap tunggu beberapa menit hingga selesai, lalu segarkan laman.',
+ 'create_error_title' => 'Kesalahan cadangan',
+ 'create_error_message' => 'File cadangan TIDAK dapat dibuat.',
+ 'create_warning_title' => 'Kesalahan yang tidak diketahui',
+ 'create_warning_message' => 'Cadangan Anda TIDAK dapat dibuat. Silakan periksa file log untuk detailnya.',
+ 'location' => 'Lokasi',
+ 'no_disks_configured' => 'Tidak ada disk cadangan yang dikonfigurasi di config/backup.php',
+ 'backup_doesnt_exist' => 'File cadangan tidak ada.',
+ 'only_local_downloads_supported' => 'Hanya unduhan dari sistem file Lokal yang didukung.',
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: Lúdio Oliveira <ludio.ao@gmail.com>
+ |
+ */
+ 'name' => 'Nama',
+ 'role' => 'Wewenang',
+ 'roles' => 'Wewenang',
+ 'roles_have_permission' => 'Wewenang yang memiliki izin ini',
+ 'permission_singular' => 'izin',
+ 'permission_plural' => 'izin',
+ 'user_singular' => 'Pengguna',
+ 'user_plural' => 'Pengguna',
+ 'email' => 'Surel',
+ 'extra_permissions' => 'Izin Ekstra',
+ 'password' => 'Kata sandi',
+ 'password_confirmation' => 'Konfirmasi kata sandi',
+ 'user_role_permission' => 'Izin Peran Pengguna',
+ 'user' => 'Pengguna',
+ 'users' => 'Pengguna',
+ 'guard_type' => 'Jenis Pelindung',
+
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: Roberto Butti ( https://github.com/roberto-butti )
+ | Language: Italian
+ |
+ */
+ 'name' => 'Nome',
+ 'role' => 'Ruolo',
+ 'roles' => 'Ruoli',
+ 'roles_have_permission' => 'Ruoli con questo permesso',
+ 'permission_singular' => 'Permesso',
+ 'permission_plural' => 'Permessi',
+ 'user_singular' => 'Utente',
+ 'user_plural' => 'Utenti',
+ 'email' => 'Email',
+ 'extra_permissions' => 'Permessi Extra',
+ 'password' => 'Password',
+ 'password_confirmation' => 'Conferma Password',
+ 'user_role_permission' => 'Utenti Ruoli Permessi',
+ 'user' => 'Utente',
+ 'users' => 'Utenti',
+
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ |
+ */
+ 'name' => 'Vārds',
+ 'role' => 'Loma',
+ 'roles' => 'Lomas',
+ 'roles_have_permission' => 'Lomas kurām ir šī atļauja',
+ 'permission_singular' => 'atļauja',
+ 'permission_plural' => 'atļaujas',
+ 'user_singular' => 'Lietotājs',
+ 'user_plural' => 'Lietotāji',
+ 'email' => 'E-pasts',
+ 'extra_permissions' => 'Papildus atļaujas',
+ 'password' => 'Parole',
+ 'password_confirmation' => 'Parole otrreiz',
+ 'user_role_permission' => 'Lietotāju lomas un atļaujas',
+ 'user' => 'Lietotājs',
+ 'users' => 'Lietotāji',
+
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'Backup',
+ 'create_a_new_backup' => 'Maak een nieuwe backup',
+ 'existing_backups' => 'Bestaande backups',
+ 'date' => 'Datum',
+ 'file_size' => 'Bestandsgrootte',
+ 'actions' => 'Acties',
+ 'download' => 'Download',
+ 'delete' => 'Verwijder',
+ 'delete_confirm' => 'Weet je zeker dat je dit backup bestand wilt verwijderen?',
+ 'delete_confirmation_title' => 'Klaar',
+ 'delete_confirmation_message' => 'Het backup bestand is verwijderd.',
+ 'delete_error_title' => 'Fout',
+ 'delete_error_message' => 'Het backup bestand is NIET verwijderd.',
+ 'delete_cancel_title' => 'Alles veilig',
+ 'delete_cancel_message' => 'Het backup bestand is NIET verwijderd.',
+ 'create_confirmation_title' => 'Backup voltooid',
+ 'create_confirmation_message' => 'De pagina wordt opnieuw geladen in 3 seconden.',
+ 'create_error_title' => 'Backup fout',
+ 'create_error_message' => 'Het backup bestand kon NIET worden gemaakt.',
+ 'create_warning_title' => 'Onbekende fout',
+ 'create_warning_message' => 'Het kan zijn dat je backup niet gemaakt is. Controleer de log bestanden voor meer informatie.',
+ 'location' => 'Locatie',
+ 'no_disks_configured' => 'Geen backup locaties geconfigureerd in config/wbackup.php',
+ 'backup_doesnt_exist' => 'Het backup bestand bestaat niet.',
+ 'only_local_downloads_supported' => 'Enkel downloads van het lokale bestandssysteem worden ondersteund.',
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: Lúdio Oliveira <ludio.ao@gmail.com>
+ |
+ */
+ 'name' => 'Naam',
+ 'role' => 'Rol',
+ 'roles' => 'Rollen',
+ 'roles_have_permission' => 'Rollen die deze permissie hebben',
+ 'permission_singular' => 'Permissie',
+ 'permission_plural' => 'Permissies',
+ 'user_singular' => 'Gebruiker',
+ 'user_plural' => 'Gebruikers',
+ 'email' => 'E-mail',
+ 'extra_permissions' => 'Extra permissies',
+ 'password' => 'Wachtwoord',
+ 'password_confirmation' => 'Wachtwoord bevestigen',
+ 'user_role_permission' => 'Rollen en permissies voor gebruiker',
+ 'user' => 'Gebruiker',
+ 'users' => 'Gebruikers',
+
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'Backup',
+ 'create_a_new_backup' => 'Criar um novo backup',
+ 'existing_backups' => 'Backups existentes',
+ 'date' => 'Data',
+ 'file_size' => 'Tamanho do ficheiro',
+ 'actions' => 'Ações',
+ 'download' => 'Transferir',
+ 'delete' => 'Apagar',
+ 'delete_confirm' => 'Tem a certeza que quer apagar este backup?',
+ 'delete_confirmation_title' => 'Concluído',
+ 'delete_confirmation_message' => 'O backup foi apagado.',
+ 'delete_error_title' => 'Erro',
+ 'delete_error_message' => 'O backup NÃO foi apagado.',
+ 'delete_cancel_title' => 'Está tudo bem!',
+ 'delete_cancel_message' => 'O backup NÃO foi apagado.',
+ 'create_confirmation_title' => 'Backup concluído',
+ 'create_confirmation_message' => 'A página vai ser recarregada dentro de 3 segundos',
+ 'create_error_title' => 'Erro ao fazer backup',
+ 'create_error_message' => 'O backup não foi criado.',
+ 'create_warning_title' => 'Erro desconhecido',
+ 'create_warning_message' => 'O backup pode NÃO ter sido criado. Por favor verifique o registo para obter mais detalhes.',
+ 'location' => 'Localização',
+ 'no_disks_configured' => 'Nenhum foi configurado nenhum disco de backups em config/backup.php',
+ 'backup_doesnt_exist' => 'O backup não existe',
+ 'only_local_downloads_supported' => 'Apenas são permitidas transferências do sistema de ficheiros local.',
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ |
+ */
+ 'name' => 'Nome',
+ 'role' => 'Cargo',
+ 'roles' => 'Cargos',
+ 'roles_have_permission' => 'Cargos com esta permissão',
+ 'permission_singular' => 'permissão',
+ 'permission_plural' => 'permissões',
+ 'user_singular' => 'Utilizador',
+ 'user_plural' => 'Utilizadores',
+ 'email' => 'Email',
+ 'extra_permissions' => 'Permissões extra',
+ 'password' => 'Palavra-passe',
+ 'password_confirmation' => 'Confirmar palavra-passe',
+ 'user_role_permission' => 'Cargo e permissões do utilizador',
+ 'user' => 'Utilizador',
+ 'users' => 'Utilizadores',
+ 'guard_type' => 'Tipo de guarda',
+
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'Backup',
+ 'create_a_new_backup' => 'Criar um novo backup',
+ 'existing_backups' => 'Backups existentes',
+ 'date' => 'Data',
+ 'file_size' => 'Tamanho do Arquivo',
+ 'actions' => 'Ações',
+ 'download' => 'Baixar',
+ 'delete' => 'Excluir',
+ 'delete_confirm' => 'Tem certeza que deseja excluir este backup?',
+ 'delete_confirmation_title' => 'Pronto',
+ 'delete_confirmation_message' => 'Backup excluído com sucesso.',
+ 'delete_error_title' => 'Erro',
+ 'delete_error_message' => 'Não foi possível excluir o backup.',
+ 'delete_cancel_title' => 'Sem problema',
+ 'delete_cancel_message' => 'O backup não foi excluído.',
+ 'create_confirmation_title' => 'Backup completo',
+ 'create_confirmation_message' => 'A página será recarregada em 3 segundos.',
+ 'create_error_title' => 'Erro de backup',
+ 'create_error_message' => 'Não foi possível criar o Backup.',
+ 'create_warning_title' => 'Erro desconhecido',
+ 'create_warning_message' => 'O backup solicitado pode não ter sido criado. Por favor, verifique o arquivo de log para mais informações.',
+ 'location' => 'Localização',
+ 'no_disks_configured' => 'Não existe configuração de local de backup no arquivo config/backup.php',
+ 'backup_doesnt_exist' => 'O arquivo de backup não existe.',
+ 'only_local_downloads_supported' => 'Somente são suportados downloads do sistema de arquivos local.',
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: Lúdio Oliveira <ludio.ao@gmail.com>
+ |
+ */
+
+ 'name' => 'Nome',
+ 'role' => 'Grupo de Usuário',
+ 'roles' => 'Grupos de Usuário',
+ 'roles_have_permission' => 'Grupos que possuem esta permissão',
+ 'permission_singular' => 'permissão',
+ 'permission_plural' => 'permissões',
+ 'user_singular' => 'Usuário',
+ 'user_plural' => 'Usuários',
+ 'email' => 'Email',
+ 'extra_permissions' => 'Permissões Extras',
+ 'password' => 'Senha',
+ 'password_confirmation' => 'Confirmar senha',
+ 'user_role_permission' => 'Permissões do Grupo de Usuário',
+ 'user' => 'Usuário',
+ 'users' => 'Usuários',
+
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'Copii de siguranță',
+ 'create_a_new_backup' => 'Creează o nouă copie de siguranță',
+ 'existing_backups' => 'Copii existente',
+ 'date' => 'Data',
+ 'file_size' => 'Mărimea fișierului',
+ 'actions' => 'Acțiuni',
+ 'download' => 'Descarcă',
+ 'delete' => 'Șterge',
+ 'delete_confirm' => 'Ești sigur că vrei să ștergi copia de siguranță?',
+ 'delete_confirmation_title' => 'Operațiune reușită',
+ 'delete_confirmation_message' => 'Copia de siguranță a fost ștearsă.',
+ 'delete_error_title' => 'Eroare',
+ 'delete_error_message' => 'Copia de siguranță NU a fost ștearsă.',
+ 'delete_cancel_title' => 'Este în regulă',
+ 'delete_cancel_message' => 'Copia de siguranță NU a fost ștearsă.',
+ 'create_confirmation_title' => 'Am început procesul de creare copie de siguranță',
+ 'create_confirmation_message' => 'Vă rugăm așteptați câteva minute, apoi reîncărcați pagina.',
+ 'create_error_title' => 'Eroare',
+ 'create_error_message' => 'Copia de siguranță NU a putut fi creată.',
+ 'create_warning_title' => 'Eroare necunoscută',
+ 'create_warning_message' => 'Copia de siguranță e posibil să NU fi fost creată. Verificați fișierele de log pentru detalii.',
+ 'location' => 'Locație',
+ 'no_disks_configured' => 'Nu există niciun disc in config/backups.php',
+ 'backup_doesnt_exist' => 'Fișierul de backup nu există.',
+ 'only_local_downloads_supported' => 'Doar descarcările din sistemul de fișiere local sunt suportate.',
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'Резервирование',
+ 'create_a_new_backup' => 'Создать новую копию',
+ 'existing_backups' => 'Существующие копии',
+ 'date' => 'Дата',
+ 'file_size' => 'Размер файла',
+ 'actions' => 'Действия',
+ 'download' => 'Выгрузить',
+ 'delete' => 'Удалить',
+ 'delete_confirm' => 'Удалить эту резервную копию?',
+ 'delete_confirmation_title' => 'Успешно',
+ 'delete_confirmation_message' => 'Резервная копия удалена.',
+ 'delete_error_title' => 'Ошибка',
+ 'delete_error_message' => 'Резервная копия не удалена.',
+ 'delete_cancel_title' => 'Без ошибок',
+ 'delete_cancel_message' => 'Резервная копия не удалена.',
+ 'create_confirmation_title' => 'Процесс резервирования запущен',
+ 'create_confirmation_message' => 'Пожалуйста, подождите несколько минут до его завершения, затем обновите страницу.',
+ 'create_error_title' => 'Ошибка резервирования',
+ 'create_error_message' => 'Не удалось создать резервную копию.',
+ 'create_warning_title' => 'Неизвестная ошибка',
+ 'create_warning_message' => 'Возможно резервная копия не создана. Пожалуйста, проверьте лог-файлы для подтверждения.',
+ 'location' => 'Назначение',
+ 'no_disks_configured' => 'Настройте диск в конфигурационном файле config/backup.php',
+ 'backup_doesnt_exist' => 'Резервная копия не существует.',
+ 'only_local_downloads_supported' => 'Выгрузка поддерживается только для локальных файловых систем.',
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: Lúdio Oliveira <ludio.ao@gmail.com>, translating to Russian: Nikita K. <exotickg1@gmail.com>
+ |
+ */
+ 'name' => 'Имя',
+ 'role' => 'Роль',
+ 'roles' => 'Роли',
+ 'roles_have_permission' => 'Роли, которые имеют это разрешение',
+ 'permission_singular' => 'разрешение',
+ 'permission_plural' => 'разрешения',
+ 'user_singular' => 'Пользователь',
+ 'user_plural' => 'Пользователи',
+ 'email' => 'Почта',
+ 'extra_permissions' => 'Дополнительные разрешения',
+ 'password' => 'Пароль',
+ 'password_confirmation' => 'Повторите пароль',
+ 'user_role_permission' => 'Разрешения роли пользователя',
+ 'user' => 'Пользователь',
+ 'users' => 'Пользователи',
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Permission Manager Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Permission Manager
+ | Author: Azarić Stefan <azaricstefan@yahoo.com>
+ |
+ */
+ 'name' => 'Ime',
+ 'role' => 'Uloga',
+ 'roles' => 'Uloge',
+ 'roles_have_permission' => 'Uloge koje imaju prava',
+ 'permission_singular' => 'Prava',
+ 'permission_plural' => 'Prava',
+ 'user_singular' => 'Korisnik',
+ 'user_plural' => 'Korisnici',
+ 'email' => 'E-pošta',
+ 'extra_permissions' => 'Dodatne prava',
+ 'password' => 'Lozinka',
+ 'password_confirmation' => 'Potvrda lozinke',
+ 'user_role_permission' => 'Korisnik uloga Prava',
+ 'user' => 'Korisnik',
+ 'users' => 'Korisnici',
+ 'guard_type' => 'Tip garda',
+
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => 'Yedekler',
+ 'create_a_new_backup' => 'Yeni bir yedek oluştur',
+ 'existing_backups' => 'Yedekleme mevcut',
+ 'date' => 'Tarih',
+ 'file_size' => 'Dosya Boyutu',
+ 'actions' => 'Olaylar',
+ 'download' => 'İndir',
+ 'delete' => 'Sil',
+ 'delete_confirm' => 'Bu yedek dosyasını silmek istediğinize emin misiniz?',
+ 'delete_confirmation_title' => 'Tamam',
+ 'delete_confirmation_message' => 'Yedek dosyası silindi.',
+ 'delete_error_title' => 'Hata',
+ 'delete_error_message' => 'Yedek dosyası silinemedi.',
+ 'delete_cancel_title' => "It's ok",
+ 'delete_cancel_message' => 'Yedek dosyası silinemedi.',
+ 'create_confirmation_title' => 'Yedekleme tamamlandı',
+ 'create_confirmation_message' => 'Sayfa 3 saniye içerisinde yenilenecektir.',
+ 'create_error_title' => 'Yedekleme hatası',
+ 'create_error_message' => 'Yedek dosyası oluşturulamadı.',
+ 'create_warning_title' => 'Bilinmeyen hata',
+ 'create_warning_message' => 'Yedekleme işlemi oluşturulmamış olabilir. Lütfen log dosyasını inceleyiniz .',
+ 'location' => 'Konum',
+ 'no_disks_configured' => 'Yedekleme disk ismi config/backup.php dosyasında tanımlanmamış',
+ 'backup_doesnt_exist' => 'Yedek dosyası mevcut değil.',
+ 'only_local_downloads_supported' => 'İndirme işlemi sadece local sunucuda bulunan dosyalar için geçerlidir.',
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Backup Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used by the backup system.
+ | You are free to change them to anything you want to customize your views to better match your application.
+ |
+ */
+
+ 'backup' => '備份',
+ 'create_a_new_backup' => '建立新備份',
+ 'existing_backups' => '存在的備份',
+ 'date' => '日期',
+ 'file_size' => '檔案大小',
+ 'actions' => '執行',
+ 'download' => '下載',
+ 'delete' => '刪除',
+ 'delete_confirm' => '你確定要刪除這個備份檔案?',
+ 'delete_confirmation_title' => '完成',
+ 'delete_confirmation_message' => '此備份已刪除',
+ 'delete_error_title' => '錯誤',
+ 'delete_error_message' => '此備份未被刪除',
+ 'delete_cancel_title' => '沒問題',
+ 'delete_cancel_message' => '此備份未被刪除',
+ 'create_confirmation_title' => '備份完畢',
+ 'create_confirmation_message' => '此頁面 3 秒後重新整理',
+ 'create_error_title' => '備份錯誤',
+ 'create_error_message' => '此備份無法被建立',
+ 'create_warning_title' => '未知錯誤',
+ 'create_warning_message' => '你的備份不允許建立,更多細節請查看 log 檔案',
+ 'location' => '所在位置',
+ 'no_disks_configured' => '在 config/backup.php 沒有備份 disks 設定',
+ 'backup_doesnt_exist' => '此備份檔案不存在',
+ 'only_local_downloads_supported' => '僅支援本地檔案系統才可以下載',
+];
--- /dev/null
+@extends(backpack_view('layouts.top_left'))
+
+@php
+ $breadcrumbs = [
+ trans('backpack::crud.admin') => backpack_url('dashboard'),
+ trans('backpack::backup.backup') => false,
+ ];
+@endphp
+
+@section('header')
+ <section class="container-fluid">
+ <h2>
+ <span class="text-capitalize">{{ trans('backpack::backup.backup') }}</span>
+ </h2>
+ </section>
+@endsection
+
+@section('content')
+<!-- Default box -->
+ <button id="create-new-backup-button" href="{{ url(config('backpack.base.route_prefix', 'admin').'/backup/create') }}" class="btn btn-primary ladda-button mb-2" data-style="zoom-in"><span class="ladda-label"><i class="fa fa-plus"></i> {{ trans('backpack::backup.create_a_new_backup') }}</span></button>
+ <div class="card">
+ <div class="card-body p-0">
+ <table class="table table-hover pb-0 mb-0">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>{{ trans('backpack::backup.location') }}</th>
+ <th>{{ trans('backpack::backup.date') }}</th>
+ <th class="text-right">{{ trans('backpack::backup.file_size') }}</th>
+ <th class="text-right">{{ trans('backpack::backup.actions') }}</th>
+ </tr>
+ </thead>
+ <tbody>
+ @foreach ($backups as $k => $b)
+ <tr>
+ <th scope="row">{{ $k+1 }}</th>
+ <td>{{ $b['disk'] }}</td>
+ <td>{{ \Carbon\Carbon::createFromTimeStamp($b['last_modified'])->formatLocalized('%d %B %Y, %H:%M') }}</td>
+ <td class="text-right">{{ round((int)$b['file_size']/1048576, 2).' MB' }}</td>
+ <td class="text-right">
+ @if ($b['download'])
+ <a class="btn btn-sm btn-link" href="{{ url(config('backpack.base.route_prefix', 'admin').'/backup/download/') }}?disk={{ $b['disk'] }}&path={{ urlencode($b['file_path']) }}&file_name={{ urlencode($b['file_name']) }}"><i class="fa fa-cloud-download"></i> {{ trans('backpack::backup.download') }}</a>
+ @endif
+ <a class="btn btn-sm btn-link" data-button-type="delete" href="{{ url(config('backpack.base.route_prefix', 'admin').'/backup/delete/'.$b['file_name']) }}?disk={{ $b['disk'] }}"><i class="fa fa-trash-o"></i> {{ trans('backpack::backup.delete') }}</a>
+ </td>
+ </tr>
+ @endforeach
+ </tbody>
+ </table>
+
+ </div><!-- /.box-body -->
+ </div><!-- /.box -->
+
+@endsection
+
+@section('after_scripts')
+
+<script>
+ jQuery(document).ready(function($) {
+
+ // capture the Create new backup button
+ $("#create-new-backup-button").click(function(e) {
+ e.preventDefault();
+
+ var create_backup_url = $(this).attr('href');
+
+ // do the backup through ajax
+ $.ajax({
+ url: create_backup_url,
+ type: 'PUT',
+ success: function(result) {
+ // Show an alert with the result
+ if (result.indexOf('failed') >= 0) {
+ new Noty({
+ text: "<strong>{{ trans('backpack::backup.create_warning_title') }}</strong><br>{{ trans('backpack::backup.create_warning_message') }}",
+ type: "warning"
+ }).show();
+ }
+ else
+ {
+ new Noty({
+ text: "<strong>{{ trans('backpack::backup.create_confirmation_title') }}</strong><br>{{ trans('backpack::backup.create_confirmation_message') }}",
+ type: "success"
+ }).show();
+ }
+ },
+ error: function(result) {
+ // Show an alert with the result
+ new Noty({
+ text: "<strong>{{ trans('backpack::backup.create_error_title') }}</strong><br>{{ trans('backpack::backup.create_error_message') }}",
+ type: "warning"
+ }).show();
+ }
+ });
+ });
+
+ // capture the delete button
+ $("[data-button-type=delete]").click(function(e) {
+ e.preventDefault();
+ var delete_button = $(this);
+ var delete_url = $(this).attr('href');
+
+ if (confirm("{{ trans('backpack::backup.delete_confirm') }}") == true) {
+ $.ajax({
+ url: delete_url,
+ type: 'DELETE',
+ success: function(result) {
+ // Show an alert with the result
+ new Noty({
+ text: "<strong>{{ trans('backpack::backup.delete_confirmation_title') }}</strong><br>{{ trans('backpack::backup.delete_confirmation_message') }}",
+ type: "success"
+ }).show();
+ // delete the row from the table
+ delete_button.parentsUntil('tr').parent().remove();
+ },
+ error: function(result) {
+ // Show an alert with the result
+ new Noty({
+ text: "<strong>{{ trans('backpack::backup.delete_error_title') }}</strong><br>{{ trans('backpack::backup.delete_error_message') }}",
+ type: "warning"
+ }).show();
+ }
+ });
+ } else {
+ new Noty({
+ text: "<strong>{{ trans('backpack::backup.delete_cancel_title') }}</strong><br>{{ trans('backpack::backup.delete_cancel_message') }}",
+ type: "info"
+ }).show();
+ }
+ });
+
+ });
+</script>
+@endsection
--- /dev/null
+@section('previewTemplate')
+<div class="dz-preview dz-file-preview">
+ <div class="dz-image">
+ <img data-dz-thumbnail />
+ </div>
+ <div class="dz-details">
+ <div class="dz-size">
+ <span data-dz-size></span>
+ </div>
+ <div class="dz-filename">
+ <span data-dz-name></span>
+ </div>
+ </div>
+ <div class="dz-progress">
+ <span class="dz-upload" data-dz-uploadprogress></span>
+ </div>
+ <div class="dz-error-message">
+ <span data-dz-errormessage></span>
+ </div>
+ <div class="dz-success-mark">
+ <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
+ <title>Check</title>
+ <defs></defs>
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
+ <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
+ </g>
+ </svg>
+ </div>
+ <div class="dz-error-mark">
+ <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
+ <title>Error</title>
+ <defs></defs>
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
+ <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">
+ <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>
+ </g>
+ </g>
+ </svg>
+ </div>
+</div>
+@endsection
+
+<div class="form-group col-md-12">
+ <strong>{{ $field['label'] }}</strong> <br>
+ <div id="dropzone_{{ $field['name'] }}" class="dropzone dz-clickable sortable">
+ <div class="dz-message">
+ Drop files here or click to upload.
+ </div>
+ </div>
+</div>
+
+{{-- ########################################## --}}
+{{-- Extra CSS and JS for this particular field --}}
+{{-- If a field type is shown multiple times on a form, the CSS and JS will only be loaded once --}}
+@if ($crud->checkIfFieldIsFirstOfItsType($field, $fields))
+ {{-- FIELD CSS - will be loaded in the after_styles section --}}
+ @push('crud_fields_styles')
+ <!-- include dropzone css-->
+ <link rel="stylesheet" href="{{ asset('vendor/gaspertrix/laravel-backpack-dropzone-field/dropzone/dropzone.min.css') }}" />
+ @endpush
+
+ {{-- FIELD JS - will be loaded in the after_scripts section --}}
+ @push('crud_fields_scripts')
+ <!-- include dropzone js-->
+ <script src="{{ asset('vendor/gaspertrix/laravel-backpack-dropzone-field/dropzone/dropzone.min.js') }}"></script>
+ <script src="{{ asset('vendor/gaspertrix/laravel-backpack-dropzone-field/sortable/Sortable.min.js') }}"></script>
+ @endpush
+
+@endif
+
+@push('crud_fields_scripts')
+ <script type="text/javascript">
+ jQuery(document).ready(function() {
+ Dropzone.autoDiscover = false;
+
+ var dOptions = {
+ url: "{{ url($crud->route . '/' . $entry->id . '/media') }}",
+ previewTemplate: '{!! str_replace(array("\r\n", "\r", "\n"), "", addslashes(View::getSection("previewTemplate"))); !!}',
+ init: function() {
+ var files = [];
+
+ @foreach ($entry->getMedia($field['collection']) as $media)
+ files.push({id: {{ $media->id }}, order_column: {{ $media->order_column }}, size: "{{ $media->size }}", name: "{{ $media->file_name }}", full_url: "{{ $media->getUrl() }}", thumb_url: "{{ $media->getUrl($field['thumb_collection'] ?? '') }}"});
+ @endforeach
+
+ for (var i = 0; i < files.length; i++) {
+ var file = files[i];
+
+ this.emit('addedfile', file);
+
+ if (typeof file.full_url != 'undefined') {
+ this.emit('thumbnail', file, file.full_url);
+ }
+
+ this.emit('success', file, {success:true, media: file});
+ this.emit('complete', file);
+ }
+
+ if (this.options.maxFiles !== null) {
+ this.options.maxFiles = this.options.maxFiles - files.length;
+ }
+ },
+ sending: function(file, xhr, formData) {
+ formData.append('_token', $('meta[name="csrf-token"]').attr('content'));
+
+ @if (isset($field['collection']) AND !empty($field['collection']))
+ formData.append('collection', "{{ $field['collection'] }}");
+ @endif
+ },
+ success: function(file, response) {
+ if (typeof response != 'undefined' && response.success == true) {
+ file.media = response.media;
+ file.previewElement.setAttribute('data-id', response.media.id);
+ file.previewElement.setAttribute('data-position', response.media.order_column);
+ }
+
+ if (file.previewElement) {
+ return file.previewElement.classList.add("dz-success");
+ }
+ },
+ removedfile: function(file) {
+ if (typeof file.media != 'undefined') {
+ $.ajax({
+ url: "{{ url($crud->route . '/' . $entry->id . '/media') }}" + '/' + file.media.id,
+ type: 'DELETE'
+ })
+ .done(function(response) {
+ var notification_type;
+
+ if (response.success == true) {
+ notification_type = 'success';
+
+ if (file.previewElement != null && file.previewElement.parentNode != null) {
+ file.previewElement.parentNode.removeChild(file.previewElement);
+ }
+ }
+ else {
+ notification_type = 'error';
+ }
+
+ new Noty({
+ text: response.message,
+ type: notification_type,
+ icon: false
+ });
+ })
+ .fail(function (xhr) {
+ var message = 'Deletion failed';
+
+ if (xhr.responseJSON != 'undefined' && xhr.responseJSON.message != 'undefined') {
+ message = xhr.responseJSON.message;
+ }
+
+ new Noty({
+ text: message,
+ type: 'error',
+ icon: false
+ });
+ });
+
+ return this._updateMaxFilesReachedClass();
+ }
+
+ if (file.previewElement != null && file.previewElement.parentNode != null) {
+ file.previewElement.parentNode.removeChild(file.previewElement);
+ }
+
+ return this._updateMaxFilesReachedClass();
+ },
+ };
+
+ var cOptions = @json($field['options']);
+
+ var dropzone_{{ $field['name'] }} = new Dropzone("#dropzone_{{ $field['name'] }}", jQuery.extend(dOptions, cOptions));
+
+ var dropzone_{{ $field['name'] }}_sortable = new Sortable(document.getElementById("dropzone_{{ $field['name'] }}"), {
+ handle: ".dz-preview",
+ draggable: ".dz-preview",
+ onEnd: function(evt) {
+ var ids = this.toArray();
+
+ if (ids.length > 0) {
+ $.ajax({
+ url: "{{ url($crud->route . '/' . $entry->id . '/media/reorder') }}",
+ type: 'POST',
+ data: {
+ ids: ids
+ }
+ })
+ .done(function(response) {
+ var notification_type;
+
+ if (response.success != true) {
+ var message = 'Order failed';
+
+ if (response.message != 'undefined') {
+ message = response.message;
+ }
+
+ new Noty({
+ text: message,
+ type: 'error',
+ icon: false
+ });
+ }
+
+
+ })
+ .fail(function (xhr) {
+ var message = 'Order failed';
+
+ if (xhr.responseJSON != 'undefined' && xhr.responseJSON.message != 'undefined') {
+ message = xhr.responseJSON.message;
+ }
+
+ new Noty({
+ text: message,
+ type: 'error',
+ icon: false
+ });
+ });
+ }
+ }
+ });
+ });
+ </script>
+@endpush
\ No newline at end of file