Skip to content

Commit

Permalink
Format Code
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io authored and github-actions[bot] committed Nov 27, 2024
1 parent c2ca786 commit 3be3120
Show file tree
Hide file tree
Showing 41 changed files with 504 additions and 516 deletions.
6 changes: 3 additions & 3 deletions database/migrations/2023_01_19_115146_create_forms_table.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
Expand All @@ -13,7 +13,7 @@
*/
public function up()
{
if(config('filament-cms.features.forms')) {
if (config('filament-cms.features.forms')) {
Schema::create('forms', function (Blueprint $table) {
$table->id();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
Expand All @@ -13,7 +13,7 @@
*/
public function up()
{
if(config('filament-cms.features.forms')) {
if (config('filament-cms.features.forms')) {
Schema::create('form_options', function (Blueprint $table) {
$table->id();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
public function up(): void
{
if(config('filament-cms.features.form_requests')) {
if (config('filament-cms.features.form_requests')) {
Schema::create('form_requests', function (Blueprint $table) {
$table->id();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
Expand All @@ -13,7 +13,7 @@
*/
public function up()
{
if(config('filament-cms.features.forms')) {
if (config('filament-cms.features.forms')) {
Schema::table('form_options', function (Blueprint $table) {
$table->foreignId('sub_form')->nullable()->constrained('forms');
});
Expand All @@ -27,7 +27,7 @@ public function up()
*/
public function down()
{
if(config('filament-cms.features.forms')) {
if (config('filament-cms.features.forms')) {
Schema::table('form_options', function (Blueprint $table) {
$table->dropForeign(['sub_form']);
$table->dropColumn('sub_form');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
public function up(): void
{
if(config('filament-cms.features.form_requests')) {
if (config('filament-cms.features.form_requests')) {
Schema::create('form_request_metas', function (Blueprint $table) {
$table->id();

Expand Down
124 changes: 62 additions & 62 deletions resources/lang/ar/messages.php
Original file line number Diff line number Diff line change
@@ -1,73 +1,73 @@
<?php

return [
"forms" => [
"section" => [
"information" => "تفاصيل النموذج"
'forms' => [
'section' => [
'information' => 'تفاصيل النموذج',
],
"title" => "منشيء النماذج",
"single" => "نموذج",
"columns" => [
"type" => "النوع",
"method" => "الطريقة",
"title" => "العنوان",
"key" => "المفتاح",
"description" => "الوصف",
"endpoint" => "الرابط",
"is_active" => "نشط",
'title' => 'منشيء النماذج',
'single' => 'نموذج',
'columns' => [
'type' => 'النوع',
'method' => 'الطريقة',
'title' => 'العنوان',
'key' => 'المفتاح',
'description' => 'الوصف',
'endpoint' => 'الرابط',
'is_active' => 'نشط',
],
"fields" => [
"title" => "الحقول",
"single" => "حقل",
"columns" => [
"type" => "النوع",
"name" => "الاسم",
"group" => "المجموعة",
"default" => "القيمة الافتراضية",
"is_relation" => "علاقة",
"relation_name" => "اسم العلاقة",
"relation_column" => "عمود العلاقة",
"sub_form" => "نموذج فرعي",
"is_multi" => "متعدد",
"has_options" => "لديه خيارات",
"options" => "الخيارات",
"label" => "التسمية",
"value"=> "القيمة",
"placeholder" => "النص البديل",
"hint" => "تلميح",
"is_required" => "مطلوب",
"required_message" => "رسالة الخطأ",
"has_validation" => "لديه تحقق",
"validation" => "التحقق",
"rule" => "القاعدة",
"message" => "الرسالة",
'fields' => [
'title' => 'الحقول',
'single' => 'حقل',
'columns' => [
'type' => 'النوع',
'name' => 'الاسم',
'group' => 'المجموعة',
'default' => 'القيمة الافتراضية',
'is_relation' => 'علاقة',
'relation_name' => 'اسم العلاقة',
'relation_column' => 'عمود العلاقة',
'sub_form' => 'نموذج فرعي',
'is_multi' => 'متعدد',
'has_options' => 'لديه خيارات',
'options' => 'الخيارات',
'label' => 'التسمية',
'value' => 'القيمة',
'placeholder' => 'النص البديل',
'hint' => 'تلميح',
'is_required' => 'مطلوب',
'required_message' => 'رسالة الخطأ',
'has_validation' => 'لديه تحقق',
'validation' => 'التحقق',
'rule' => 'القاعدة',
'message' => 'الرسالة',
],
"tabs" => [
"general" => "عام",
"options" => "الخيارات",
"validation" => "التحقق",
"relation" => "العلاقة",
"labels" => "التسميات",
'tabs' => [
'general' => 'عام',
'options' => 'الخيارات',
'validation' => 'التحقق',
'relation' => 'العلاقة',
'labels' => 'التسميات',
],
'actions' => [
'preview' => 'معاينة',
],
"actions" => [
"preview" => "معاينة",
]
],
"requests" => [
"title" => "طلبات النموذج",
"single" => "طلب",
"columns" => [
"status" => "الحالة",
"description" => "الوصف",
"time" => "الوقت",
"date" => "التاريخ",
"payload" => "الرسالة",
"pending" => "قيد الانتظار",
"processing" => "جاري المعالجة",
"completed" => "تم الانتهاء",
"cancelled" => "تم الإلغاء",
'requests' => [
'title' => 'طلبات النموذج',
'single' => 'طلب',
'columns' => [
'status' => 'الحالة',
'description' => 'الوصف',
'time' => 'الوقت',
'date' => 'التاريخ',
'payload' => 'الرسالة',
'pending' => 'قيد الانتظار',
'processing' => 'جاري المعالجة',
'completed' => 'تم الانتهاء',
'cancelled' => 'تم الإلغاء',

]
]
],
],
],
];
124 changes: 62 additions & 62 deletions resources/lang/en/messages.php
Original file line number Diff line number Diff line change
@@ -1,73 +1,73 @@
<?php

return [
"forms" => [
"section" => [
"information" => "Form Information"
'forms' => [
'section' => [
'information' => 'Form Information',
],
"title" => "Form Builder",
"single" => "Form",
"columns" => [
"type" => "Type",
"method" => "Method",
"title" => "Title",
"key" => "Key",
"description" => "Description",
"endpoint" => "Endpoint",
"is_active" => "Is Active",
'title' => 'Form Builder',
'single' => 'Form',
'columns' => [
'type' => 'Type',
'method' => 'Method',
'title' => 'Title',
'key' => 'Key',
'description' => 'Description',
'endpoint' => 'Endpoint',
'is_active' => 'Is Active',
],
"fields" => [
"title" => "Fields",
"single" => "Field",
"columns" => [
"type" => "Type",
"name" => "Name",
"group" => "Group",
"default" => "Default",
"is_relation" => "Is Relation",
"relation_name" => "Relation Name",
"relation_column" => "Relation Column",
"sub_form" => "Sub Form",
"is_multi" => "Is Multi",
"has_options" => "Has Options",
"options" => "Options",
"label" => "Label",
"value"=> "Value",
"placeholder" => "Placeholder",
"hint" => "Hint",
"is_required" => "Is Required",
"required_message" => "Required Message",
"has_validation" => "Has Validation",
"validation" => "Validation",
"rule" => "Rule",
"message" => "Message"
'fields' => [
'title' => 'Fields',
'single' => 'Field',
'columns' => [
'type' => 'Type',
'name' => 'Name',
'group' => 'Group',
'default' => 'Default',
'is_relation' => 'Is Relation',
'relation_name' => 'Relation Name',
'relation_column' => 'Relation Column',
'sub_form' => 'Sub Form',
'is_multi' => 'Is Multi',
'has_options' => 'Has Options',
'options' => 'Options',
'label' => 'Label',
'value' => 'Value',
'placeholder' => 'Placeholder',
'hint' => 'Hint',
'is_required' => 'Is Required',
'required_message' => 'Required Message',
'has_validation' => 'Has Validation',
'validation' => 'Validation',
'rule' => 'Rule',
'message' => 'Message',
],
"tabs" => [
"general" => "General",
"options" => "Options",
"validation" => "Validation",
"relation" => "Relation",
"labels" => "Labels",
'tabs' => [
'general' => 'General',
'options' => 'Options',
'validation' => 'Validation',
'relation' => 'Relation',
'labels' => 'Labels',
],
'actions' => [
'preview' => 'Preview',
],
"actions" => [
"preview" => "Preview",
]
],
"requests" => [
"title" => "Form Requests",
"single" => "Request",
"columns" => [
"status" => "Status",
"description" => "Description",
"time" => "Time",
"date" => "Date",
"payload" => "Payload",
"pending" => "Pending",
"processing" => "Processing",
"completed" => "Completed",
"cancelled" => "Cancelled",
'requests' => [
'title' => 'Form Requests',
'single' => 'Request',
'columns' => [
'status' => 'Status',
'description' => 'Description',
'time' => 'Time',
'date' => 'Date',
'payload' => 'Payload',
'pending' => 'Pending',
'processing' => 'Processing',
'completed' => 'Completed',
'cancelled' => 'Cancelled',

]
]
],
],
],
];
5 changes: 2 additions & 3 deletions src/Console/FilamentFormBuilderInstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public function __construct()
parent::__construct();
}


/**
* Execute the console command.
*
Expand All @@ -37,8 +36,8 @@ public function __construct()
public function handle()
{
$this->info('Publish Vendor Assets');
$this->artisanCommand(["migrate"]);
$this->artisanCommand(["optimize:clear"]);
$this->artisanCommand(['migrate']);
$this->artisanCommand(['optimize:clear']);
$this->info('Filament form builder installed successfully.');
}
}
Loading

0 comments on commit 3be3120

Please sign in to comment.