diff --git a/app/Http/Controllers/CouplesController.php b/app/Http/Controllers/CouplesController.php new file mode 100644 index 0000000..cad560a --- /dev/null +++ b/app/Http/Controllers/CouplesController.php @@ -0,0 +1,14 @@ +increments('id'); - $table->unsignedInteger('husband_id')->index(); - $table->unsignedInteger('wife_id')->index(); - $table->date('marriege_date')->nullable(); + $table->unsignedInteger('husband_id'); + $table->unsignedInteger('wife_id'); + $table->date('marriage_date')->nullable(); $table->date('divorce_date')->nullable(); $table->timestamps(); diff --git a/resources/lang/en/couple.php b/resources/lang/en/couple.php index ddbcdc4..45fdf0f 100644 --- a/resources/lang/en/couple.php +++ b/resources/lang/en/couple.php @@ -3,12 +3,13 @@ return [ // Labels 'show' => 'Show Marriage Profile', + 'detail' => 'Marriage Profile', 'childs_count' => 'Childs Count', 'grand_childs_count' => 'Grand Childs Count', // Attributes 'husband' => 'Head of Family', - 'wive' => 'Wife', + 'wife' => 'Wife', 'marriage_date' => 'Marriage Date', 'divorce_date' => 'Divorce Date', ]; \ No newline at end of file diff --git a/resources/lang/id/couple.php b/resources/lang/id/couple.php index c92334f..0b27c9b 100644 --- a/resources/lang/id/couple.php +++ b/resources/lang/id/couple.php @@ -3,12 +3,13 @@ return [ // Labels 'show' => 'Lhat Profil Pernikahan', + 'detail' => 'Profil Pernikahan', 'childs_count' => 'Jumlah Anak', 'grand_childs_count' => 'Jumlah Cucu', // Attributes 'husband' => 'Kepala Keluarga', - 'wive' => 'Isteri', + 'wife' => 'Isteri', 'marriage_date' => 'Tanggal Pernikahan', 'divorce_date' => 'Tanggal Perceraian', ]; \ No newline at end of file diff --git a/resources/views/couples/partials/stat.blade.php b/resources/views/couples/partials/stat.blade.php new file mode 100644 index 0000000..b4a5d01 --- /dev/null +++ b/resources/views/couples/partials/stat.blade.php @@ -0,0 +1,35 @@ +
+ +