From 4448a33ffea418aecbf3dc024db98a8d6acf6849 Mon Sep 17 00:00:00 2001
From: Bagus Pambudi <baguspambudi@unesa.ac.id>
Date: Wed, 16 Jun 2021 15:46:53 +0700
Subject: [PATCH] 3 bahasa tidak wajib diisi

---
 database/migrations/2020_12_19_143802_create_de_table.php      | 10 +++++-----
 database/migrations/2020_12_20_080910_create_sa_table.php      | 10 +++++-----
 database/migrations/2020_12_20_111102_create_zh_table.php      | 10 +++++-----
 resources/views/webprofile/backend/design/edit.blade.php       |  6 +++---
 resources/views/webprofile/backend/informations/edit.blade.php |  6 +++---
 resources/views/webprofile/backend/pages/edit.blade.php        |  6 +++---
 resources/views/webprofile/backend/posts/edit.blade.php        |  6 +++---
 7 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/database/migrations/2020_12_19_143802_create_de_table.php b/database/migrations/2020_12_19_143802_create_de_table.php
index 2a29b5d..f088d7e 100644
--- a/database/migrations/2020_12_19_143802_create_de_table.php
+++ b/database/migrations/2020_12_19_143802_create_de_table.php
@@ -16,7 +16,7 @@ class CreateDeTable extends Migration
         Schema::create('swp_categories_de', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('category_id', 36);
-            $table->string('name');
+            $table->string('name')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
             $table->timestamps();
@@ -25,7 +25,7 @@ class CreateDeTable extends Migration
         Schema::create('swp_posts_de', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('post_id', 36);
-            $table->string('title');
+            $table->string('title')->nullable();
             $table->text('content')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
@@ -35,7 +35,7 @@ class CreateDeTable extends Migration
         Schema::create('swp_informations_de', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('information_id', 36);
-            $table->string('title');
+            $table->string('title')->nullable();
             $table->text('content')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
@@ -45,7 +45,7 @@ class CreateDeTable extends Migration
         Schema::create('swp_menus_de', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('menu_id', 36);
-            $table->string('name');
+            $table->string('name')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
             $table->timestamps();
@@ -54,7 +54,7 @@ class CreateDeTable extends Migration
         Schema::create('swp_pages_de', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('page_id', 36);
-            $table->string('title');
+            $table->string('title')->nullable();
             $table->text('content')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
diff --git a/database/migrations/2020_12_20_080910_create_sa_table.php b/database/migrations/2020_12_20_080910_create_sa_table.php
index 0d57f46..289d400 100644
--- a/database/migrations/2020_12_20_080910_create_sa_table.php
+++ b/database/migrations/2020_12_20_080910_create_sa_table.php
@@ -16,7 +16,7 @@ class CreateSaTable extends Migration
         Schema::create('swp_categories_sa', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('category_id', 36);
-            $table->string('name');
+            $table->string('name')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
             $table->timestamps();
@@ -25,7 +25,7 @@ class CreateSaTable extends Migration
         Schema::create('swp_posts_sa', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('post_id', 36);
-            $table->string('title');
+            $table->string('title')->nullable();
             $table->text('content')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
@@ -35,7 +35,7 @@ class CreateSaTable extends Migration
         Schema::create('swp_informations_sa', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('information_id', 36);
-            $table->string('title');
+            $table->string('title')->nullable();
             $table->text('content')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
@@ -45,7 +45,7 @@ class CreateSaTable extends Migration
         Schema::create('swp_menus_sa', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('menu_id', 36);
-            $table->string('name');
+            $table->string('name')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
             $table->timestamps();
@@ -54,7 +54,7 @@ class CreateSaTable extends Migration
         Schema::create('swp_pages_sa', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('page_id', 36);
-            $table->string('title');
+            $table->string('title')->nullable();
             $table->text('content')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
diff --git a/database/migrations/2020_12_20_111102_create_zh_table.php b/database/migrations/2020_12_20_111102_create_zh_table.php
index dc16ab8..1d66a0a 100644
--- a/database/migrations/2020_12_20_111102_create_zh_table.php
+++ b/database/migrations/2020_12_20_111102_create_zh_table.php
@@ -16,7 +16,7 @@ class CreateZhTable extends Migration
         Schema::create('swp_categories_zh', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('category_id', 36);
-            $table->string('name');
+            $table->string('name')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
             $table->timestamps();
@@ -25,7 +25,7 @@ class CreateZhTable extends Migration
         Schema::create('swp_posts_zh', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('post_id', 36);
-            $table->string('title');
+            $table->string('title')->nullable();
             $table->text('content')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
@@ -35,7 +35,7 @@ class CreateZhTable extends Migration
         Schema::create('swp_informations_zh', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('information_id', 36);
-            $table->string('title');
+            $table->string('title')->nullable();
             $table->text('content')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
@@ -45,7 +45,7 @@ class CreateZhTable extends Migration
         Schema::create('swp_menus_zh', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('menu_id', 36);
-            $table->string('name');
+            $table->string('name')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
             $table->timestamps();
@@ -54,7 +54,7 @@ class CreateZhTable extends Migration
         Schema::create('swp_pages_zh', function (Blueprint $table) {
             $table->string('id', 36)->primary();
             $table->string('page_id', 36);
-            $table->string('title');
+            $table->string('title')->nullable();
             $table->text('content')->nullable();
             $table->string('userid_created', 36)->nullable();
             $table->string('userid_updated', 36)->nullable();
diff --git a/resources/views/webprofile/backend/design/edit.blade.php b/resources/views/webprofile/backend/design/edit.blade.php
index 19f13c8..699ef84 100644
--- a/resources/views/webprofile/backend/design/edit.blade.php
+++ b/resources/views/webprofile/backend/design/edit.blade.php
@@ -91,7 +91,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title_design')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_design_de', $data->rDe ? $data->rDe->title_design : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_design_de', $data->rDe ? $data->rDe->title_design : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title_design'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title_design')}}</label>
 									@endif
@@ -111,7 +111,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title_design')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_design_sa', $data->rSa ? $data->rSa->title_design : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_design_sa', $data->rSa ? $data->rSa->title_design : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title_design'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title_design')}}</label>
 									@endif
@@ -131,7 +131,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title_design')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_design_zh', $data->rZh ? $data->rZh->title_design : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_design_zh', $data->rZh ? $data->rZh->title_design : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title_design'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title_design')}}</label>
 									@endif
diff --git a/resources/views/webprofile/backend/informations/edit.blade.php b/resources/views/webprofile/backend/informations/edit.blade.php
index 3f26ab0..ef86675 100644
--- a/resources/views/webprofile/backend/informations/edit.blade.php
+++ b/resources/views/webprofile/backend/informations/edit.blade.php
@@ -84,7 +84,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_de', $data->rDe ? $data->rDe->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_de', $data->rDe ? $data->rDe->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
 									@endif
@@ -104,7 +104,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_sa', $data->rSa ? $data->rSa->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_sa', $data->rSa ? $data->rSa->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
 									@endif
@@ -124,7 +124,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_zh', $data->rZh ? $data->rZh->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_zh', $data->rZh ? $data->rZh->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
 									@endif
diff --git a/resources/views/webprofile/backend/pages/edit.blade.php b/resources/views/webprofile/backend/pages/edit.blade.php
index cbe706e..f7b2f16 100644
--- a/resources/views/webprofile/backend/pages/edit.blade.php
+++ b/resources/views/webprofile/backend/pages/edit.blade.php
@@ -84,7 +84,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_de', $data->rDe ? $data->rDe->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_de', $data->rDe ? $data->rDe->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
 									@endif
@@ -104,7 +104,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_sa', $data->rSa ? $data->rSa->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_sa', $data->rSa ? $data->rSa->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
 									@endif
@@ -124,7 +124,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_zh', $data->rZh ? $data->rZh->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_zh', $data->rZh ? $data->rZh->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
 									@endif
diff --git a/resources/views/webprofile/backend/posts/edit.blade.php b/resources/views/webprofile/backend/posts/edit.blade.php
index 12341b1..976b4b6 100644
--- a/resources/views/webprofile/backend/posts/edit.blade.php
+++ b/resources/views/webprofile/backend/posts/edit.blade.php
@@ -94,7 +94,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_de', $data->rDe ? $data->rDe->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_de', $data->rDe ? $data->rDe->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
 									@endif
@@ -114,7 +114,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_sa', $data->rSa ? $data->rSa->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_sa', $data->rSa ? $data->rSa->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
 									@endif
@@ -134,7 +134,7 @@
 							<div class="col-md-12">
 								<div class="form-group @if ($errors->has('title')) has-error @endif">
 									<div class="col-md-12">
-									{{ Form::text('title_zh', $data->rZh ? $data->rZh->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
+									{{ Form::text('title_zh', $data->rZh ? $data->rZh->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
 									@if ($errors->has('title'))
 									<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
 									@endif
--
libgit2 0.26.0