backpack installed addons permission manager, settings, backups, pages

Created Events,Categories, Countries CRUD
This commit is contained in:
merdiano 2018-12-18 11:55:20 +05:00
parent 7d8c24e911
commit 9e53bf694d
58 changed files with 2381 additions and 3 deletions

View File

@ -0,0 +1,60 @@
<?php
namespace App\Http\Controllers\Admin;
use Backpack\CRUD\app\Http\Controllers\CrudController;
// VALIDATION: change the requests to match your own file names if you need form validation
use App\Http\Requests\CategoryRequest as StoreRequest;
use App\Http\Requests\CategoryRequest as UpdateRequest;
/**
* Class CategoryCrudController
* @package App\Http\Controllers\Admin
* @property-read CrudPanel $crud
*/
class CategoryCrudController extends CrudController
{
public function setup()
{
/*
|--------------------------------------------------------------------------
| CrudPanel Basic Information
|--------------------------------------------------------------------------
*/
$this->crud->setModel('App\Models\Category');
$this->crud->setRoute(config('backpack.base.route_prefix') . '/category');
$this->crud->setEntityNameStrings('category', 'categories');
/*
|--------------------------------------------------------------------------
| CrudPanel Configuration
|--------------------------------------------------------------------------
*/
// TODO: remove setFromDb() and manually define Fields and Columns
$this->crud->setFromDb();
// add asterisk for fields that are required in CategoryRequest
$this->crud->setRequiredFields(StoreRequest::class, 'create');
$this->crud->setRequiredFields(UpdateRequest::class, 'edit');
}
public function store(StoreRequest $request)
{
// your additional operations before save here
$redirect_location = parent::storeCrud($request);
// your additional operations after save here
// use $this->data['entry'] or $this->crud->entry
return $redirect_location;
}
public function update(UpdateRequest $request)
{
// your additional operations before save here
$redirect_location = parent::updateCrud($request);
// your additional operations after save here
// use $this->data['entry'] or $this->crud->entry
return $redirect_location;
}
}

View File

@ -0,0 +1,60 @@
<?php
namespace App\Http\Controllers\Admin;
use Backpack\CRUD\app\Http\Controllers\CrudController;
// VALIDATION: change the requests to match your own file names if you need form validation
use App\Http\Requests\CountryRequest as StoreRequest;
use App\Http\Requests\CountryRequest as UpdateRequest;
/**
* Class CountryCrudController
* @package App\Http\Controllers\Admin
* @property-read CrudPanel $crud
*/
class CountryCrudController extends CrudController
{
public function setup()
{
/*
|--------------------------------------------------------------------------
| CrudPanel Basic Information
|--------------------------------------------------------------------------
*/
$this->crud->setModel('App\Models\Country');
$this->crud->setRoute(config('backpack.base.route_prefix') . '/country');
$this->crud->setEntityNameStrings('country', 'countries');
/*
|--------------------------------------------------------------------------
| CrudPanel Configuration
|--------------------------------------------------------------------------
*/
// TODO: remove setFromDb() and manually define Fields and Columns
$this->crud->setFromDb();
// add asterisk for fields that are required in CountryRequest
$this->crud->setRequiredFields(StoreRequest::class, 'create');
$this->crud->setRequiredFields(UpdateRequest::class, 'edit');
}
public function store(StoreRequest $request)
{
// your additional operations before save here
$redirect_location = parent::storeCrud($request);
// your additional operations after save here
// use $this->data['entry'] or $this->crud->entry
return $redirect_location;
}
public function update(UpdateRequest $request)
{
// your additional operations before save here
$redirect_location = parent::updateCrud($request);
// your additional operations after save here
// use $this->data['entry'] or $this->crud->entry
return $redirect_location;
}
}

View File

@ -0,0 +1,60 @@
<?php
namespace App\Http\Controllers\Admin;
use Backpack\CRUD\app\Http\Controllers\CrudController;
// VALIDATION: change the requests to match your own file names if you need form validation
use App\Http\Requests\EventRequest as StoreRequest;
use App\Http\Requests\EventRequest as UpdateRequest;
/**
* Class EventCrudController
* @package App\Http\Controllers\Admin
* @property-read CrudPanel $crud
*/
class EventCrudController extends CrudController
{
public function setup()
{
/*
|--------------------------------------------------------------------------
| CrudPanel Basic Information
|--------------------------------------------------------------------------
*/
$this->crud->setModel('App\Models\Event');
$this->crud->setRoute(config('backpack.base.route_prefix') . '/event');
$this->crud->setEntityNameStrings('event', 'events');
/*
|--------------------------------------------------------------------------
| CrudPanel Configuration
|--------------------------------------------------------------------------
*/
// TODO: remove setFromDb() and manually define Fields and Columns
$this->crud->setFromDb();
// add asterisk for fields that are required in EventRequest
$this->crud->setRequiredFields(StoreRequest::class, 'create');
$this->crud->setRequiredFields(UpdateRequest::class, 'edit');
}
public function store(StoreRequest $request)
{
// your additional operations before save here
$redirect_location = parent::storeCrud($request);
// your additional operations after save here
// use $this->data['entry'] or $this->crud->entry
return $redirect_location;
}
public function update(UpdateRequest $request)
{
// your additional operations before save here
$redirect_location = parent::updateCrud($request);
// your additional operations after save here
// use $this->data['entry'] or $this->crud->entry
return $redirect_location;
}
}

View File

@ -0,0 +1,56 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class CategoryRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
// only allow updates if the user is logged in
return backpack_auth()->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
// 'name' => 'required|min:5|max:255'
];
}
/**
* Get the validation attributes that apply to the request.
*
* @return array
*/
public function attributes()
{
return [
//
];
}
/**
* Get the validation messages that apply to the request.
*
* @return array
*/
public function messages()
{
return [
//
];
}
}

View File

@ -0,0 +1,56 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class CountryRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
// only allow updates if the user is logged in
return backpack_auth()->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
// 'name' => 'required|min:5|max:255'
];
}
/**
* Get the validation attributes that apply to the request.
*
* @return array
*/
public function attributes()
{
return [
//
];
}
/**
* Get the validation messages that apply to the request.
*
* @return array
*/
public function messages()
{
return [
//
];
}
}

View File

@ -0,0 +1,56 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class EventRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
// only allow updates if the user is logged in
return backpack_auth()->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
// 'name' => 'required|min:5|max:255'
];
}
/**
* Get the validation attributes that apply to the request.
*
* @return array
*/
public function attributes()
{
return [
//
];
}
/**
* Get the validation messages that apply to the request.
*
* @return array
*/
public function messages()
{
return [
//
];
}
}

71
app/PageTemplates.php Normal file
View File

@ -0,0 +1,71 @@
<?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'),
]);
}
}

View File

@ -0,0 +1,9 @@
<?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',
];

View File

@ -0,0 +1,48 @@
<?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,
];

202
config/backup.php Normal file
View File

@ -0,0 +1,202 @@
<?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,
],
],
];

127
config/permission.php Normal file
View File

@ -0,0 +1,127 @@
<?php
return [
'models' => [
/*
* When using the "HasPermissions" trait from this package, we need to know which
* Eloquent model should be used to retrieve your permissions. Of course, it
* is often just the "Permission" model but you may use whatever you like.
*
* The model you want to use as a Permission model needs to implement the
* `Spatie\Permission\Contracts\Permission` contract.
*/
'permission' => Spatie\Permission\Models\Permission::class,
/*
* When using the "HasRoles" trait from this package, we need to know which
* Eloquent model should be used to retrieve your roles. Of course, it
* is often just the "Role" model but you may use whatever you like.
*
* The model you want to use as a Role model needs to implement the
* `Spatie\Permission\Contracts\Role` contract.
*/
'role' => Spatie\Permission\Models\Role::class,
],
'table_names' => [
/*
* When using the "HasRoles" trait from this package, we need to know which
* table should be used to retrieve your roles. We have chosen a basic
* default value but you may easily change it to any table you like.
*/
'roles' => 'roles',
/*
* When using the "HasPermissions" trait from this package, we need to know which
* table should be used to retrieve your permissions. We have chosen a basic
* default value but you may easily change it to any table you like.
*/
'permissions' => 'permissions',
/*
* When using the "HasPermissions" trait from this package, we need to know which
* table should be used to retrieve your models permissions. We have chosen a
* basic default value but you may easily change it to any table you like.
*/
'model_has_permissions' => 'model_has_permissions',
/*
* When using the "HasRoles" trait from this package, we need to know which
* table should be used to retrieve your models roles. We have chosen a
* basic default value but you may easily change it to any table you like.
*/
'model_has_roles' => 'model_has_roles',
/*
* When using the "HasRoles" trait from this package, we need to know which
* table should be used to retrieve your roles permissions. We have chosen a
* basic default value but you may easily change it to any table you like.
*/
'role_has_permissions' => 'role_has_permissions',
],
'column_names' => [
/*
* Change this if you want to name the related model primary key other than
* `model_id`.
*
* For example, this would be nice if your primary keys are all UUIDs. In
* that case, name this `model_uuid`.
*/
'model_morph_key' => 'model_id',
],
/*
* When set to true, the required permission/role names are added to the exception
* message. This could be considered an information leak in some contexts, so
* the default setting is false here for optimum safety.
*/
'display_permission_in_exception' => false,
'cache' => [
/*
* By default all permissions will be cached for 24 hours unless a permission or
* role is updated. Then the cache will be flushed immediately.
*/
'expiration_time' => 60 * 24,
/*
* The key to use when tagging and prefixing entries in the cache.
*/
'key' => 'spatie.permission.cache',
/*
* When checking for a permission against a model by passing a Permission
* instance to the check, this key determines what attribute on the
* Permissions model is used to cache against.
*
* Ideally, this should match your preferred way of checking permissions, eg:
* `$user->can('view-posts')` would be 'name'.
*/
'model_key' => 'name',
/*
* You may optionally indicate a specific cache driver to use for permission and
* role caching using any of the `store` drivers listed in the cache.php config
* file. Using 'default' here means to use the `default` set in cache.php.
*/
'store' => 'default',
],
];

View File

@ -0,0 +1,36 @@
<?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');
}
}

View File

@ -0,0 +1,38 @@
<?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');
}
}

View File

@ -0,0 +1,32 @@
<?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();
});
}
}

View File

@ -0,0 +1,102 @@
<?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']);
}
}

View File

@ -0,0 +1,22 @@
<?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.',
];

View File

@ -0,0 +1,29 @@
<?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',
];

View File

@ -0,0 +1,18 @@
<?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',
];

View File

@ -0,0 +1,22 @@
<?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.',
];

View File

@ -0,0 +1,29 @@
<?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',
];

View File

@ -0,0 +1,18 @@
<?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',
];

View File

@ -0,0 +1,28 @@
<?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' => 'Χρήστες',
];

View File

@ -0,0 +1,40 @@
<?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.',
];

View File

@ -0,0 +1,22 @@
<?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.',
];

View File

@ -0,0 +1,30 @@
<?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',
];

View File

@ -0,0 +1,18 @@
<?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',
];

View File

@ -0,0 +1,40 @@
<?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.',
];

View File

@ -0,0 +1,28 @@
<?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',
];

View File

@ -0,0 +1,40 @@
<?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.',
];

View File

@ -0,0 +1,22 @@
<?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 na pu être trouvé. Il a dû être supprimé ou renommé depuis la création de cette page. Pour poursuivre, veuillez demander lintervention de votre webmaster ou développeur.',
];

View File

@ -0,0 +1,29 @@
<?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 dutilisateur',
'user' => 'Utilisateur',
'users' => 'Utilisateurs',
];

View File

@ -0,0 +1,29 @@
<?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 dutilisateur',
'user' => 'Utilisateur',
'users' => 'Utilisateurs',
];

View File

@ -0,0 +1,41 @@
<?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' => 'Υποστηρίζονται λήψεις μόνο από το τοπικό σύστημα αρχείων.',
];

View File

@ -0,0 +1,22 @@
<?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.',
];

View File

@ -0,0 +1,30 @@
<?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',
];

View File

@ -0,0 +1,18 @@
<?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',
];

View File

@ -0,0 +1,18 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Settings Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used for Laravel Backpack - Settings
|
*/
'name' => 'ຊື່',
'value' => 'ຄ່າທີ່ລະບຸ',
'description' => 'ຄໍາອະທິບາຍ',
'setting_singular' => 'ການຕັ້ງຄ່າ',
'setting_plural' => 'ການຕັ້ງຄ່າຕ່າງໆ',
];

View File

@ -0,0 +1,28 @@
<?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',
];

View File

@ -0,0 +1,40 @@
<?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.',
];

View File

@ -0,0 +1,22 @@
<?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',
];

View File

@ -0,0 +1,29 @@
<?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',
];

View File

@ -0,0 +1,18 @@
<?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',
];

View File

@ -0,0 +1,40 @@
<?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.',
];

View File

@ -0,0 +1,22 @@
<?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.',
];

View File

@ -0,0 +1,28 @@
<?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',
];

View File

@ -0,0 +1,18 @@
<?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',
];

View File

@ -0,0 +1,40 @@
<?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.',
];

View File

@ -0,0 +1,30 @@
<?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',
];

View File

@ -0,0 +1,17 @@
<?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',
];

View File

@ -0,0 +1,40 @@
<?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.',
];

View File

@ -0,0 +1,28 @@
<?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' => 'Пользователи',
];

View File

@ -0,0 +1,18 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Settings Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used for Laravel Backpack - Settings
|
*/
'name' => 'Название',
'value' => 'Значение',
'description' => 'Описание',
'setting_singular' => 'настройка',
'setting_plural' => 'настройки',
];

View File

@ -0,0 +1,40 @@
<?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.',
];

View File

@ -0,0 +1,18 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Settings Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used for Laravel Backpack - Settings
|
*/
'name' => '名称',
'value' => '值',
'description' => '描述',
'setting_singular' => '设置',
'setting_plural' => '设置',
];

View File

@ -0,0 +1,40 @@
<?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' => '僅支援本地檔案系統才可以下載',
];

View File

@ -0,0 +1,167 @@
@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

View File

@ -13,6 +13,11 @@
<li><a href='{{ backpack_url('page') }}'><i class='fa fa-file-o'></i> <span>Pages</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('backup') }}'><i class='fa fa-hdd-o'></i> <span>Backups</span></a></li>
<li><a href='{{ backpack_url('category') }}'><i class='fa fa-tag'></i> <span>Categories</span></a></li>
<li><a href='{{ backpack_url('country') }}'><i class='fa fa-tag'></i> <span>Countries</span></a></li>
<li><a href='{{ backpack_url('event') }}'><i class='fa fa-tag'></i> <span>Events</span></a></li>
<li class="treeview">
<a href="#"><i class="fa fa-group"></i> <span>CRUD ...</span> <i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu">
<li><a href='{{ backpack_url('category') }}'><i class='fa fa-tag'></i> <span>Categories</span></a></li>
<li><a href='{{ backpack_url('country') }}'><i class='fa fa-tag'></i> <span>Countries</span></a></li>
<li><a href='{{ backpack_url('event') }}'><i class='fa fa-tag'></i> <span>Events</span></a></li>
</ul>
</li>

View File

@ -0,0 +1,84 @@
<!-- 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 --}}
{{-- ########################################## --}}