APP_DEBUG=true
APP_URL=https://dev.pmi.cubedesigners.com
+APP_LOG=daily
+
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_PASSWORD=ZJMcD6nAc3xnLjLVKZ2iWi69
BROADCAST_DRIVER=log
-CACHE_DRIVER=redis
+CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=redis
SESSION_LIFETIME=120
*/
protected function schedule(Schedule $schedule)
{
- // $schedule->command('inspire')
- // ->hourly();
+ $schedule->command('backup:clean')->daily()->at('04:00');
+ $schedule->command('backup:run')->daily()->at('05:00');
}
/**
--- /dev/null
+<?php
+
+namespace App;
+
+trait PageTemplates
+{
+ /*
+ |--------------------------------------------------------------------------
+ | Page Templates for Backpack\PageManager
+ |--------------------------------------------------------------------------
+ |
+ | Each page template has its own method, that define what fields should show up using the Backpack\CRUD API.
+ | Use snake_case for naming and PageManager will make sure it looks pretty in the create/update form
+ | template dropdown.
+ |
+ | Any fields defined here will show up after the standard page fields:
+ | - select template
+ | - page name (only seen by admins)
+ | - page title
+ | - page slug
+ */
+
+ private function services()
+ {
+ $this->crud->addField([ // CustomHTML
+ 'name' => 'metas_separator',
+ 'type' => 'custom_html',
+ 'value' => '<br><h2>'.trans('backpack::pagemanager.metas').'</h2><hr>',
+ ]);
+ $this->crud->addField([
+ 'name' => 'meta_title',
+ 'label' => trans('backpack::pagemanager.meta_title'),
+ 'fake' => true,
+ 'store_in' => 'extras',
+ ]);
+ $this->crud->addField([
+ 'name' => 'meta_description',
+ 'label' => trans('backpack::pagemanager.meta_description'),
+ 'fake' => true,
+ 'store_in' => 'extras',
+ ]);
+ $this->crud->addField([
+ 'name' => 'meta_keywords',
+ 'type' => 'textarea',
+ 'label' => trans('backpack::pagemanager.meta_keywords'),
+ 'fake' => true,
+ 'store_in' => 'extras',
+ ]);
+ $this->crud->addField([ // CustomHTML
+ 'name' => 'content_separator',
+ 'type' => 'custom_html',
+ 'value' => '<br><h2>'.trans('backpack::pagemanager.content').'</h2><hr>',
+ ]);
+ $this->crud->addField([
+ 'name' => 'content',
+ 'label' => trans('backpack::pagemanager.content'),
+ 'type' => 'wysiwyg',
+ 'placeholder' => trans('backpack::pagemanager.content_placeholder'),
+ ]);
+ }
+
+ private function about_us()
+ {
+ $this->crud->addField([
+ 'name' => 'content',
+ 'label' => trans('backpack::pagemanager.content'),
+ 'type' => 'wysiwyg',
+ 'placeholder' => trans('backpack::pagemanager.content_placeholder'),
+ ]);
+ }
+}
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
+use Backpack\CRUD\CrudTrait;
+use Spatie\Permission\Traits\HasRoles;
class User extends Authenticatable
{
use Notifiable;
+ use CrudTrait; // <----- this
+ use HasRoles; // <------ and this
/**
* The attributes that are mass assignable.
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
+ Backpack\MenuCRUD\MenuCRUDServiceProvider::class,
+ Backpack\NewsCRUD\NewsCRUDServiceProvider::class,
],
--- /dev/null
+<?php
+
+return [
+ // Change this class if you wish to extend PageCrudController
+ 'admin_controller_class' => 'Backpack\PageManager\app\Http\Controllers\Admin\PageCrudController',
+
+ // Change this class if you wish to extend the Page model
+ 'page_model_class' => 'Backpack\PageManager\app\Models\Page',
+];
--- /dev/null
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Models
+ |--------------------------------------------------------------------------
+ |
+ | Models used in the User, Role and Permission CRUDs.
+ |
+ */
+
+ 'models' => [
+ 'user' => App\Models\BackpackUser::class,
+ 'permission' => Backpack\PermissionManager\app\Models\Permission::class,
+ 'role' => Backpack\PermissionManager\app\Models\Role::class,
+ ],
+
+ /*
+ |--------------------------------------------------------------------------
+ | Disallow the user interface for creating/updating permissions or roles.
+ |--------------------------------------------------------------------------
+ | Roles and permissions are used in code by their name
+ | - ex: $user->hasPermissionTo('edit articles');
+ |
+ | So after the developer has entered all permissions and roles, the administrator should either:
+ | - not have access to the panels
+ | or
+ | - creating and updating should be disabled
+ */
+
+ 'allow_permission_create' => true,
+ 'allow_permission_update' => true,
+ 'allow_permission_delete' => true,
+ 'allow_role_create' => true,
+ 'allow_role_update' => true,
+ 'allow_role_delete' => true,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Multiple-guards functionality
+ |--------------------------------------------------------------------------
+ |
+ */
+ 'multiple_guards' => false,
+
+];
--- /dev/null
+<?php
+
+return [
+
+ 'backup' => [
+
+ /* --------------------------------------
+ * Backpack\BackupManager Command Flags
+ * --------------------------------------
+ * These flags will be attached every time a backup is triggered
+ * by Backpack\BackupManager. By default only notifications are disabled.
+ *
+ * https://docs.spatie.be/laravel-backup/v4/taking-backups/overview
+ * --only-to-disk=name-of-your-disk
+ * --only-db
+ * --only-files
+ * --disable-notifications
+ */
+ 'backpack_flags' => [
+ '--disable-notifications'=> true,
+ ],
+
+ /*
+ * The name of this application. You can use this name to monitor
+ * the backups.
+ */
+ 'name' => env('APP_URL'),
+
+ 'source' => [
+
+ 'files' => [
+
+ /*
+ * The list of directories that should be part of the backup. You can
+ * specify individual files as well.
+ */
+ 'include' => [
+ base_path(),
+ ],
+
+ /*
+ * These directories will be excluded from the backup.
+ * You can specify individual files as well.
+ */
+ 'exclude' => [
+ base_path('vendor'),
+ storage_path(),
+ ],
+
+ /*
+ * Determines if symlinks should be followed.
+ */
+ 'followLinks' => false,
+ ],
+
+ /*
+ * The names of the connections to the databases that should be part of the backup.
+ * Currently only MySQL- and PostgreSQL-databases are supported.
+ */
+ 'databases' => [
+ 'mysql',
+ ],
+ ],
+
+ /*
+ * The database dump can be gzipped to decrease diskspace usage.
+ */
+ 'gzip_database_dump' => false,
+
+ 'destination' => [
+
+ /*
+ * The filename prefix used for the backup zip file.
+ */
+ 'filename_prefix' => '',
+
+ /*
+ * The disk names on which the backups will be stored.
+ */
+ 'disks' => [
+ 'backups',
+ ],
+ ],
+
+ 'temporary_directory' => storage_path('app/backup-temp'),
+ ],
+
+ /*
+ * You can get notified when specific events occur. Out of the box you can use 'mail' and 'slack'.
+ * For Slack you need to install guzzlehttp/guzzle.
+ *
+ * You can also use your own notification classes, just make sure the class is named after one of
+ * the `Spatie\Backup\Events` classes.
+ */
+ 'notifications' => [
+
+ 'notifications' => [
+ \Spatie\Backup\Notifications\Notifications\BackupHasFailed::class => ['mail'],
+ \Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFound::class => ['mail'],
+ \Spatie\Backup\Notifications\Notifications\CleanupHasFailed::class => ['mail'],
+ \Spatie\Backup\Notifications\Notifications\BackupWasSuccessful::class => ['mail'],
+ \Spatie\Backup\Notifications\Notifications\HealthyBackupWasFound::class => ['mail'],
+ \Spatie\Backup\Notifications\Notifications\CleanupWasSuccessful::class => ['mail'],
+ ],
+
+ /*
+ * Here you can specify the notifiable to which the notifications should be sent. The default
+ * notifiable will use the variables specified in this config file.
+ */
+ 'notifiable' => \Spatie\Backup\Notifications\Notifiable::class,
+
+ /*
+ * Here you can specify how emails should be sent.
+ */
+ 'mail' => [
+ 'to' => 'your@email.com',
+ ],
+
+ /*
+ * Here you can specify how messages should be sent to Slack.
+ */
+ 'slack' => [
+ 'webhook_url' => '',
+
+ /*
+ * If this is set to null the default channel of the webhook will be used.
+ */
+ 'channel' => null,
+ ],
+ ],
+
+ /*
+ * Here you can specify which backups should be monitored.
+ * If a backup does not meet the specified requirements the
+ * UnHealthyBackupWasFound event will be fired.
+ */
+ 'monitorBackups' => [
+ [
+ 'name' => env('APP_NAME'),
+ 'disks' => ['backups'],
+ 'newestBackupsShouldNotBeOlderThanDays' => 1,
+ 'storageUsedMayNotBeHigherThanMegabytes' => 5000,
+ ],
+
+ /*
+ [
+ 'name' => 'name of the second app',
+ 'disks' => ['local', 's3'],
+ 'newestBackupsShouldNotBeOlderThanDays' => 1,
+ 'storageUsedMayNotBeHigherThanMegabytes' => 5000,
+ ],
+ */
+ ],
+
+ 'cleanup' => [
+ /*
+ * The strategy that will be used to cleanup old backups. The default strategy
+ * will keep all backups for a certain amount of days. After that period only
+ * a daily backup will be kept. After that period only weekly backups will
+ * be kept and so on.
+ *
+ * No matter how you configure it the default strategy will never
+ * delete the newest backup.
+ */
+ 'strategy' => \Spatie\Backup\Tasks\Cleanup\Strategies\DefaultStrategy::class,
+
+ 'defaultStrategy' => [
+
+ /*
+ * The number of days for which backups must be kept.
+ */
+ 'keepAllBackupsForDays' => 7,
+
+ /*
+ * The number of days for which daily backups must be kept.
+ */
+ 'keepDailyBackupsForDays' => 16,
+
+ /*
+ * The number of weeks for which one weekly backup must be kept.
+ */
+ 'keepWeeklyBackupsForWeeks' => 8,
+
+ /*
+ * The number of months for which one monthly backup must be kept.
+ */
+ 'keepMonthlyBackupsForMonths' => 4,
+
+ /*
+ * The number of years for which one yearly backup must be kept.
+ */
+ 'keepYearlyBackupsForYears' => 2,
+
+ /*
+ * After cleaning up the backups remove the oldest backup until
+ * this amount of megabytes has been reached.
+ */
+ 'deleteOldestBackupsWhenUsingMoreMegabytesThan' => 5000,
+ ],
+ ],
+
+];
'url' => env('AWS_URL'),
],
+ // used for Backpack/BackupManager
+ 'backups' => [
+ 'driver' => 'local',
+ 'root' => storage_path('backups'), // that's where your backups are stored by default: storage/backups
+ ],
+
+ 'storage' => [
+ 'driver' => 'local',
+ 'root' => storage_path(),
+ ],
+
],
];
--- /dev/null
+<?php
+
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateArticleTagTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('article_tag', function (Blueprint $table) {
+ $table->increments('id');
+ $table->integer('article_id')->unsigned();
+ $table->integer('tag_id')->unsigned();
+ $table->nullableTimestamps();
+ $table->softDeletes();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::drop('article_tag');
+ }
+}
--- /dev/null
+<?php
+
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateArticlesTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('articles', function (Blueprint $table) {
+ $table->increments('id');
+ $table->integer('category_id')->unsigned();
+ $table->string('title');
+ $table->string('slug')->default('');
+ $table->text('content');
+ $table->string('image')->nullable();
+ $table->enum('status', ['PUBLISHED', 'DRAFT'])->default('PUBLISHED');
+ $table->date('date');
+ $table->boolean('featured')->default(0);
+ $table->timestamps();
+ $table->softDeletes();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::drop('articles');
+ }
+}
--- /dev/null
+<?php
+
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateCategoriesTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('categories', function (Blueprint $table) {
+ $table->increments('id');
+ $table->integer('parent_id')->default(0)->nullable();
+ $table->integer('lft')->unsigned()->nullable();
+ $table->integer('rgt')->unsigned()->nullable();
+ $table->integer('depth')->unsigned()->nullable();
+ $table->string('name');
+ $table->timestamps();
+ $table->softDeletes();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::drop('categories');
+ }
+}
--- /dev/null
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+
+class CreateSettingsTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('settings', function (Blueprint $table) {
+ $table->increments('id');
+ $table->string('key')->unique();
+ $table->string('name');
+ $table->string('description')->nullable();
+ $table->text('value')->nullable();
+ $table->text('field');
+ $table->tinyInteger('active');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::drop('settings');
+ }
+}
--- /dev/null
+<?php
+
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateTagsTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('tags', function (Blueprint $table) {
+ $table->increments('id');
+ $table->string('name');
+ $table->timestamps();
+ $table->softDeletes();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::drop('tags');
+ }
+}
--- /dev/null
+<?php
+
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateMenuItemsTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('menu_items', function (Blueprint $table) {
+ $table->increments('id');
+ $table->string('name', 100);
+ $table->string('type', 20)->nullable();
+ $table->string('link', 255)->nullable();
+ $table->integer('page_id')->unsigned()->nullable();
+ $table->integer('parent_id')->unsigned()->nullable();
+ $table->integer('lft')->unsigned()->nullable();
+ $table->integer('rgt')->unsigned()->nullable();
+ $table->integer('depth')->unsigned()->nullable();
+ $table->timestamps();
+ $table->softDeletes();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::drop('menu_items');
+ }
+}
--- /dev/null
+<?php
+
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreatePagesTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ // TODO: use JSON data type for 'extras' instead of string
+ Schema::create('pages', function (Blueprint $table) {
+ $table->increments('id');
+ $table->string('template');
+ $table->string('name');
+ $table->string('title');
+ $table->string('slug');
+ $table->text('content')->nullable();
+ $table->text('extras')->nullable();
+ $table->timestamps();
+ $table->softDeletes();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::drop('pages');
+ }
+}
--- /dev/null
+<?php
+
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AddSlugToCategoriesTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::table('categories', function (Blueprint $table) {
+ $table->string('slug')->unique()->after('name');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::table('categories', function (Blueprint $table) {
+ $table->dropColumn('slug');
+ });
+ }
+}
--- /dev/null
+<?php
+
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AddSlugToTagsTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::table('tags', function (Blueprint $table) {
+ $table->string('slug')->unique()->after('name');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::table('tags', function (Blueprint $table) {
+ $table->dropColumn('slug');
+ });
+ }
+}
--- /dev/null
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class ChangeExtrasToLongtext extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::table('pages', function (Blueprint $table) {
+ $table->longText('extras')->change();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::table('pages', function (Blueprint $table) {
+ $table->text('extras')->change();
+ });
+ }
+}
--- /dev/null
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreatePermissionTables extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ $tableNames = config('permission.table_names');
+ $columnNames = config('permission.column_names');
+
+ Schema::create($tableNames['permissions'], function (Blueprint $table) {
+ $table->increments('id');
+ $table->string('name');
+ $table->string('guard_name');
+ $table->timestamps();
+ });
+
+ Schema::create($tableNames['roles'], function (Blueprint $table) {
+ $table->increments('id');
+ $table->string('name');
+ $table->string('guard_name');
+ $table->timestamps();
+ });
+
+ Schema::create($tableNames['model_has_permissions'], function (Blueprint $table) use ($tableNames, $columnNames) {
+ $table->unsignedInteger('permission_id');
+
+ $table->string('model_type');
+ $table->unsignedBigInteger($columnNames['model_morph_key']);
+ $table->index([$columnNames['model_morph_key'], 'model_type', ]);
+
+ $table->foreign('permission_id')
+ ->references('id')
+ ->on($tableNames['permissions'])
+ ->onDelete('cascade');
+
+ $table->primary(['permission_id', $columnNames['model_morph_key'], 'model_type'],
+ 'model_has_permissions_permission_model_type_primary');
+ });
+
+ Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames, $columnNames) {
+ $table->unsignedInteger('role_id');
+
+ $table->string('model_type');
+ $table->unsignedBigInteger($columnNames['model_morph_key']);
+ $table->index([$columnNames['model_morph_key'], 'model_type', ]);
+
+ $table->foreign('role_id')
+ ->references('id')
+ ->on($tableNames['roles'])
+ ->onDelete('cascade');
+
+ $table->primary(['role_id', $columnNames['model_morph_key'], 'model_type'],
+ 'model_has_roles_role_model_type_primary');
+ });
+
+ Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) {
+ $table->unsignedInteger('permission_id');
+ $table->unsignedInteger('role_id');
+
+ $table->foreign('permission_id')
+ ->references('id')
+ ->on($tableNames['permissions'])
+ ->onDelete('cascade');
+
+ $table->foreign('role_id')
+ ->references('id')
+ ->on($tableNames['roles'])
+ ->onDelete('cascade');
+
+ $table->primary(['permission_id', 'role_id']);
+
+ app('cache')
+ ->store(config('permission.cache.store') != 'default' ? config('permission.cache.store') : null)
+ ->forget(config('permission.cache.key'));
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ $tableNames = config('permission.table_names');
+
+ Schema::drop($tableNames['role_has_permissions']);
+ Schema::drop($tableNames['model_has_roles']);
+ Schema::drop($tableNames['model_has_permissions']);
+ Schema::drop($tableNames['roles']);
+ Schema::drop($tableNames['permissions']);
+ }
+}
--- /dev/null
+<?php
+
+return [
+ 'change_template_confirmation' => 'Er du sikker på at du vil ændre side skabelonen? Du mister ugemte ændringer for denne side.',
+ 'content' => 'Indhold',
+ 'content_placeholder' => 'dit Indhold indsættes her',
+ 'meta_description' => 'Meta beskrivelse',
+ 'meta_keywords' => 'Meta søgeord',
+ 'meta_title' => 'Meta titel',
+ 'metas' => 'Metaer',
+ 'name' => 'Navn',
+ 'open' => 'åben',
+ 'page' => 'side',
+ 'page_name' => 'Side navn (kan kun ses af administratorer)',
+ 'page_slug' => 'Page Slug (Link)',
+ 'page_slug_hint' => 'Vil automatisk blive genereret fra titlen, hvis denne efterlades blank.',
+ 'page_title' => 'Side Titel',
+ 'pages' => 'Sider',
+ 'slug' => 'Slug',
+ 'template' => 'Skabelon',
+ 'template_not_found' => 'Skabelonen kunne ikke findes. Den kan være blevet slettet siden denne side blev oprettet. For at forsætte så bed din web administrator, eller udviklingsteam om at løse dette.',
+];
--- /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 [
+ /*
+ |--------------------------------------------------------------------------
+ | Settings Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Settings
+ | Author: Frederik Rabøl (frederik-rm@hotmail.com)
+ */
+ 'name' => 'Navn',
+ 'value' => 'værdi',
+ 'description' => 'beskrivelse',
+ 'setting_singular' => 'indstilling',
+ 'setting_plural' => 'indstillinger',
+
+];
--- /dev/null
+<?php
+
+return [
+ 'change_template_confirmation' => 'Willst Du die Vorlage wirklich ändern? Alle ungespeicherten Änderungen gehen dardurch verloren.',
+ 'content' => 'Inhalt',
+ 'content_placeholder' => 'Inhalt eingeben',
+ 'meta_description' => 'Meta Beschreibung',
+ 'meta_keywords' => 'Meta Schlüsselwörter',
+ 'meta_title' => 'Meta Titel',
+ 'metas' => 'Metas',
+ 'name' => 'Name',
+ 'open' => 'Öffnen',
+ 'page' => 'Seite',
+ 'page_name' => 'Seitenname (nur für Admins sichtbar)',
+ 'page_slug' => 'Seiten-Slug (URL)',
+ 'page_slug_hint' => 'Wird automatisch generiert, falls leer.',
+ 'page_title' => 'Seitentitel',
+ 'pages' => 'Seiten',
+ 'slug' => 'Slug',
+ 'template' => 'Vorlage',
+ 'template_not_found' => 'Die Vorlage wurde nicht gefunden. Möglicheweise wurde sie nach Erstellen der Seite gelöscht. Bitte frage Deine Entwickler um Hilfe.',
+];
--- /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 [
+ /*
+ |--------------------------------------------------------------------------
+ | Settings Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Settings
+ |
+ */
+ 'name' => 'Name',
+ 'value' => 'Wert',
+ 'description' => 'Beschreibung',
+ 'setting_singular' => 'Einstellung',
+ 'setting_plural' => 'Einstellungen',
+
+];
--- /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 completed',
+ 'create_confirmation_message' => 'Reloading the page in 3 seconds.',
+ '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/laravel-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 [
+ 'change_template_confirmation' => 'Are you sure you want to change the page template? You will lose any unsaved modifications for this page.',
+ 'content' => 'Content',
+ 'content_placeholder' => 'Your content here',
+ 'meta_description' => 'Meta Description',
+ 'meta_keywords' => 'Meta Keywords',
+ 'meta_title' => 'Meta Title',
+ 'metas' => 'Metas',
+ 'name' => 'Name',
+ 'open' => 'Open',
+ 'page' => 'page',
+ 'page_name' => 'Page name (only seen by admins)',
+ 'page_slug' => 'Page Slug (URL)',
+ 'page_slug_hint' => 'Will be automatically generated from your title, if left empty.',
+ 'page_title' => 'Page Title',
+ 'pages' => 'pages',
+ 'slug' => 'Slug',
+ 'template' => 'Template',
+ 'template_not_found' => 'The template could not be found. It might have been deleted since this page was created. To continue, please ask your webmin or development team to fix this.',
+];
--- /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 [
+ /*
+ |--------------------------------------------------------------------------
+ | Settings Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Settings
+ |
+ */
+ 'name' => 'Name',
+ 'value' => 'Value',
+ 'description' => 'Description',
+ 'setting_singular' => 'setting',
+ 'setting_plural' => 'settings',
+
+];
--- /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/laravel-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' => '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/laravel-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 [
+ 'change_template_confirmation' => 'Confirmez-vous le changement de modèle? Toutes les modifications non enregistrées pour cette page seront perdues.',
+ 'content' => 'Contenu',
+ 'content_placeholder' => 'Saisissez le contenu de la page ici',
+ 'meta_description' => 'Méta description',
+ 'meta_keywords' => 'Méta mots-clés',
+ 'meta_title' => 'Méta titre',
+ 'metas' => 'Balises META',
+ 'name' => 'Nom',
+ 'open' => 'Ouvrir',
+ 'page' => 'page',
+ 'page_name' => 'Nom de page (visible uniquement par les admins)',
+ 'page_slug' => 'Url simplifiée',
+ 'page_slug_hint' => 'Sera générée automatiquement à partir du titre si laissée vide.',
+ 'page_title' => 'Titre de la page',
+ 'pages' => 'pages',
+ 'slug' => 'Url simplifiée',
+ 'template' => 'Modèle',
+ 'template_not_found' => 'Le modèle de page n’a pu être trouvé. Il a dû être supprimé ou renommé depuis la création de cette page. Pour poursuivre, veuillez demander l’intervention de votre webmaster ou développeur.',
+];
--- /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 [
+ 'change_template_confirmation' => 'Sei sicuro di voler cambiare il template della pagina? Perderai qualsiasi modifiche non salvata per questa pagina.',
+ 'content' => 'Contenuto',
+ 'content_placeholder' => 'Il tuo contenuto qui',
+ 'meta_description' => 'Meta Description',
+ 'meta_keywords' => 'Meta Keywords',
+ 'meta_title' => 'Meta Title',
+ 'metas' => 'Meta',
+ 'name' => 'Nome',
+ 'open' => 'Apri',
+ 'page' => 'pagina',
+ 'page_name' => 'Nome pagina (visibile solo agli amministratori)',
+ 'page_slug' => 'Slug pagina (URL)',
+ 'page_slug_hint' => 'Se lasciato in bianco, verrà automaticamente generato dal titolo.',
+ 'page_title' => 'Titolo pagina',
+ 'pages' => 'pagine',
+ 'slug' => 'Slug',
+ 'template' => 'Template',
+ 'template_not_found' => 'Il template non è stato trovato. Potrebbe essere stato eliminato da quando la pagina è stata creata. Per continuare, chiedi al tuo amministratore o al team di sviluppo di risolvere questo problema.',
+];
--- /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 [
+ /*
+ |--------------------------------------------------------------------------
+ | Settings Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Settings
+ |
+ */
+ 'name' => 'Nome',
+ 'value' => 'Valore',
+ 'description' => 'Descrizione',
+ 'setting_singular' => 'impostazione',
+ 'setting_plural' => 'impostazioni',
+
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Settings Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Settings
+ |
+ */
+ 'name' => 'ຊື່',
+ 'value' => 'ຄ່າທີ່ລະບຸ',
+ 'description' => 'ຄໍາອະທິບາຍ',
+ 'setting_singular' => 'ການຕັ້ງຄ່າ',
+ 'setting_plural' => 'ການຕັ້ງຄ່າຕ່າງໆ',
+
+];
--- /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/laravel-backup.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 [
+ 'change_template_confirmation' => 'Weet je zeker dat je de pagina template wilt aanpassen? Als er nog niet op opslaan is geklikt wordt alle op deze pagina ingevoerde data verwijderd.',
+ 'content' => 'Content',
+ 'content_placeholder' => 'Je content hier',
+ 'meta_description' => 'Meta Description',
+ 'meta_keywords' => 'Meta Keywords',
+ 'meta_title' => 'Meta Title',
+ 'metas' => 'Meta informatie',
+ 'name' => 'Naam',
+ 'open' => 'Open',
+ 'page' => 'pagina',
+ 'page_name' => 'Pagina naam (alleen zichtbaar in admin)',
+ 'page_slug' => 'Vriendelijke URL naam',
+ 'page_slug_hint' => 'Deze wordt bij leeg laten automatisch gegeneeerd.',
+ 'page_title' => 'Pagina titel',
+ 'pages' => 'pagina\'s',
+ 'slug' => 'Slug',
+ 'template' => 'Template',
+ 'template_not_found' => 'De template is niet gevonden. Misschien is deze verwijderd nadat deze pagina is aangemaakt. Neem contact op met de web ontwikkelaar',
+];
--- /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 [
+ /*
+ |--------------------------------------------------------------------------
+ | Settings Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Settings
+ |
+ */
+ 'name' => 'Naam',
+ 'value' => 'Waarde',
+ 'description' => 'Beschrijving',
+ 'setting_singular' => 'instelling',
+ 'setting_plural' => 'instellingen',
+
+];
--- /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/laravel-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 [
+ 'change_template_confirmation' => 'Tem a certeza que quer mudar o modelo da página? Vai perder as alterações que não tenham sido guardadas.',
+ 'content' => 'Conteúdo',
+ 'content_placeholder' => 'O seu conteúdo aqui',
+ 'meta_description' => 'Descrição (meta)',
+ 'meta_keywords' => 'Palavras-chave (meta)',
+ 'meta_title' => 'Título (meta)',
+ 'metas' => 'Metas',
+ 'name' => 'Nome',
+ 'open' => 'Abrir',
+ 'page' => 'página',
+ 'page_name' => 'Nome da página (visível apenas a administradores)',
+ 'page_slug' => 'Slug da página (URL)',
+ 'page_slug_hint' => 'Se não for preenchido, será gerado automaticamente a partir do título.',
+ 'page_title' => 'Título da página',
+ 'pages' => 'páginas',
+ 'slug' => 'Slug',
+ 'template' => 'Modelo',
+ 'template_not_found' => 'O modelo não foi encontrado. Pode ter sido apagado depois desta página ter sido criada. Para continuar, por favor peça ao seu administrador ou equipa de desenvolvimento para corrigir este problema.',
+];
--- /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',
+
+];
--- /dev/null
+<?php
+
+return [
+ /*
+ |--------------------------------------------------------------------------
+ | Settings Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Settings
+ |
+ */
+ 'name' => 'Nome',
+ 'value' => 'Valor',
+ 'description' => 'Descrição',
+ 'setting_singular' => 'configuração',
+ 'setting_plural' => 'configurações',
+
+];
--- /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/laravel-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 [
+ /*
+ |--------------------------------------------------------------------------
+ | Settings Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Settings
+ |
+ */
+ 'name' => 'Nome',
+ 'value' => 'Valor',
+ 'description' => 'Descrição',
+ 'setting_singular' => 'configuração',
+ 'setting_plural' => 'configurações',
+];
--- /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' => 'Operațiune reușită',
+ 'create_confirmation_message' => 'Copia de siguranță a fost creeată cu succes.',
+ '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/laravel-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 [
+ /*
+ |--------------------------------------------------------------------------
+ | 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 [
+ /*
+ |--------------------------------------------------------------------------
+ | Settings Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Settings
+ |
+ */
+ 'name' => 'Название',
+ 'value' => 'Значение',
+ 'description' => 'Описание',
+ 'setting_singular' => 'настройка',
+ 'setting_plural' => 'настройки',
+
+];
--- /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/laravel-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 [
+ /*
+ |--------------------------------------------------------------------------
+ | Settings Language Lines
+ |--------------------------------------------------------------------------
+ |
+ | The following language lines are used for Laravel Backpack - Settings
+ |
+ */
+ 'name' => '名称',
+ 'value' => '值',
+ 'description' => '描述',
+ 'setting_singular' => '设置',
+ 'setting_plural' => '设置',
+
+];
--- /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/laravel-backup.php 沒有備份 disks 設定',
+ 'backup_doesnt_exist' => '此備份檔案不存在',
+ 'only_local_downloads_supported' => '僅支援本地檔案系統才可以下載',
+];
--- /dev/null
+@extends('backpack::layout')
+
+@section('after_styles')
+ <!-- Ladda Buttons (loading buttons) -->
+ <link href="{{ asset('vendor/backpack/ladda/ladda-themeless.min.css') }}" rel="stylesheet" type="text/css" />
+@endsection
+
+@section('header')
+ <section class="content-header">
+ <h1>
+ {{ trans('backpack::backup.backup') }}
+ </h1>
+ <ol class="breadcrumb">
+ <li><a href="{{ url(config('backpack.base.route_prefix', 'admin').'/dashboard') }}">Admin</a></li>
+ <li class="active">{{ trans('backpack::backup.backup') }}</li>
+ </ol>
+ </section>
+@endsection
+
+@section('content')
+<!-- Default box -->
+ <div class="box">
+ <div class="box-body">
+ <button id="create-new-backup-button" href="{{ url(config('backpack.base.route_prefix', 'admin').'/backup/create') }}" class="btn btn-primary ladda-button" data-style="zoom-in"><span class="ladda-label"><i class="fa fa-plus"></i> {{ trans('backpack::backup.create_a_new_backup') }}</span></button>
+ <br>
+ <h3>{{ trans('backpack::backup.existing_backups') }}:</h3>
+ <table class="table table-hover table-condensed">
+ <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-xs btn-default" 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-xs btn-danger" 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')
+ <!-- Ladda Buttons (loading buttons) -->
+ <script src="{{ asset('vendor/backpack/ladda/spin.js') }}"></script>
+ <script src="{{ asset('vendor/backpack/ladda/ladda.js') }}"></script>
+
+<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');
+ // Create a new instance of ladda for the specified button
+ var l = Ladda.create( document.querySelector( '#create-new-backup-button' ) );
+
+ // Start loading
+ l.start();
+
+ // Will display a progress bar for 10% of the button width
+ l.setProgress( 0.3 );
+
+ setTimeout(function(){ l.setProgress( 0.6 ); }, 2000);
+
+ // do the backup through ajax
+ $.ajax({
+ url: create_backup_url,
+ type: 'PUT',
+ success: function(result) {
+ l.setProgress( 0.9 );
+ // Show an alert with the result
+ if (result.indexOf('failed') >= 0) {
+ new PNotify({
+ title: "{{ trans('backpack::backup.create_warning_title') }}",
+ text: "{{ trans('backpack::backup.create_warning_message') }}",
+ type: "warning"
+ });
+ }
+ else
+ {
+ new PNotify({
+ title: "{{ trans('backpack::backup.create_confirmation_title') }}",
+ text: "{{ trans('backpack::backup.create_confirmation_message') }}",
+ type: "success"
+ });
+ }
+
+ // Stop loading
+ l.setProgress( 1 );
+ l.stop();
+
+ // refresh the page to show the new file
+ setTimeout(function(){ location.reload(); }, 3000);
+ },
+ error: function(result) {
+ l.setProgress( 0.9 );
+ // Show an alert with the result
+ new PNotify({
+ title: "{{ trans('backpack::backup.create_error_title') }}",
+ text: "{{ trans('backpack::backup.create_error_message') }}",
+ type: "warning"
+ });
+ // Stop loading
+ l.stop();
+ }
+ });
+ });
+
+ // 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 PNotify({
+ title: "{{ trans('backpack::backup.delete_confirmation_title') }}",
+ text: "{{ trans('backpack::backup.delete_confirmation_message') }}",
+ type: "success"
+ });
+ // delete the row from the table
+ delete_button.parentsUntil('tr').parent().remove();
+ },
+ error: function(result) {
+ // Show an alert with the result
+ new PNotify({
+ title: "{{ trans('backpack::backup.delete_error_title') }}",
+ text: "{{ trans('backpack::backup.delete_error_message') }}",
+ type: "warning"
+ });
+ }
+ });
+ } else {
+ new PNotify({
+ title: "{{ trans('backpack::backup.delete_cancel_title') }}",
+ text: "{{ trans('backpack::backup.delete_cancel_message') }}",
+ type: "info"
+ });
+ }
+ });
+
+ });
+</script>
+@endsection
<!-- This file is used to store sidebar items, starting with Backpack\Base 0.9.0 -->
<li><a href="{{ backpack_url('dashboard') }}"><i class="fa fa-dashboard"></i> <span>{{ trans('backpack::base.dashboard') }}</span></a></li>
-<li><a href="{{ backpack_url('elfinder') }}"><i class="fa fa-files-o"></i> <span>{{ trans('backpack::crud.file_manager') }}</span></a></li>
\ No newline at end of file
+<li><a href="{{ backpack_url('elfinder') }}"><i class="fa fa-files-o"></i> <span>{{ trans('backpack::crud.file_manager') }}</span></a></li>
+<li class="treeview">
+ <a href="#"><i class="fa fa-group"></i> <span>Users, Roles, Permissions</span> <i class="fa fa-angle-left pull-right"></i></a>
+ <ul class="treeview-menu">
+ <li><a href="{{ backpack_url('user') }}"><i class="fa fa-user"></i> <span>Users</span></a></li>
+ <li><a href="{{ backpack_url('role') }}"><i class="fa fa-group"></i> <span>Roles</span></a></li>
+ <li><a href="{{ backpack_url('permission') }}"><i class="fa fa-key"></i> <span>Permissions</span></a></li>
+ </ul>
+</li>
+
+<li><a href='{{ backpack_url('backup') }}'><i class='fa fa-hdd-o'></i> <span>Backups</span></a></li>
+<li><a href='{{ backpack_url('log') }}'><i class='fa fa-terminal'></i> <span>Logs</span></a></li>
+<li><a href='{{ backpack_url('setting') }}'><i class='fa fa-cog'></i> <span>Settings</span></a></li>
+<li><a href='{{ backpack_url('page') }}'><i class='fa fa-file-o'></i> <span>Pages</span></a></li>
+<li><a href="{{ backpack_url('menu-item') }}"><i class="fa fa-list"></i> <span>Menu</span></a></li>
+<li class="treeview">
+ <a href="#"><i class="fa fa-newspaper-o"></i> <span>News</span> <i class="fa fa-angle-left pull-right"></i></a>
+ <ul class="treeview-menu">
+ <li><a href="{{ backpack_url('article') }}"><i class="fa fa-newspaper-o"></i> <span>Articles</span></a></li>
+ <li><a href="{{ backpack_url('category') }}"><i class="fa fa-list"></i> <span>Categories</span></a></li>
+ <li><a href="{{ backpack_url('tag') }}"><i class="fa fa-tag"></i> <span>Tags</span></a></li>
+ </ul>
+</li>
--- /dev/null
+<!-- Select template field. Used in Backpack/PageManager to redirect to a form with different fields if the template changes. A fork of the select_from_array field with an extra ID and an extra javascript file. -->
+ <div @include('crud::inc.field_wrapper_attributes') >
+
+ <label>{{ $field['label'] }}</label>
+ <select
+ class="form-control"
+ id="select_template"
+
+ @foreach ($field as $attribute => $value)
+ @if (!is_array($value))
+ {{ $attribute }}="{{ $value }}"
+ @endif
+ @endforeach
+ >
+
+ @if (isset($field['allows_null']) && $field['allows_null']==true)
+ <option value="">-</option>
+ @endif
+
+ @if (count($field['options']))
+ @foreach ($field['options'] as $key => $value)
+ <option value="{{ $key }}"
+ @if (isset($field['value']) && $key==$field['value'])
+ selected
+ @endif
+ >{{ $value }}</option>
+ @endforeach
+ @endif
+ </select>
+
+ @if (isset($field['hint']))
+ <p class="help-block">{!! $field['hint'] !!}</p>
+ @endif
+ </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 JS - will be loaded in the after_scripts section --}}
+ @push('crud_fields_scripts')
+ <!-- select_template crud field JS -->
+ <script>
+ function redirect_to_new_page_with_template_parameter() {
+ var new_template = $("#select_template").val();
+ var current_url = "{{ Request::url() }}";
+
+ window.location.href = strip_last_template_parameter(current_url)+'?template='+new_template;
+ }
+
+ function strip_last_template_parameter(url) {
+ // if it's a create or edit link with a template parameter
+ if (url.indexOf("/create/") > -1 || url.indexOf("/edit/") > -1)
+ {
+ // remove the last parameter of the url
+ var url_array = url.split('/');
+ url_array = url_array.slice(0, -1);
+ var clean_url = url_array.join('/');
+
+ return clean_url;
+ }
+
+ return url;
+ }
+
+ jQuery(document).ready(function($) {
+ $("#select_template").change(function(e) {
+ var select_template_confirmation = confirm("@lang('backpack::pagemanager.change_template_confirmation')");
+ if (select_template_confirmation == true) {
+ redirect_to_new_page_with_template_parameter();
+ } else {
+ // txt = "You pressed Cancel!";
+ }
+ });
+
+ });
+ </script>
+ @endpush
+
+@endif
+{{-- End of Extra CSS and JS --}}
+{{-- ########################################## --}}
\ No newline at end of file