diff --git a/app/Http/Controllers/Admin/FolderCrudController.php b/app/Http/Controllers/Admin/FolderCrudController.php index a892c43c..de885e18 100644 --- a/app/Http/Controllers/Admin/FolderCrudController.php +++ b/app/Http/Controllers/Admin/FolderCrudController.php @@ -57,6 +57,10 @@ class FolderCrudController extends CrudController ], //Total Price ['label'=>'Umumy bahsy (Total price)','name'=>'total_price','type'=>'text'], + ['label'=>'TV','name'=>'on_tv','type'=>'checkbox'], + ['label'=>'Radio','name'=>'on_radio','type'=>'checkbox'], + ['label'=>'Subtitle','name'=>'on_subtitle','type'=>'checkbox'], + ['label'=>'Web','name'=>'on_web','type'=>'checkbox'], //checkBox ['label'=>'Ulanyjy wagt aralygyny saýlamaly.', 'name'=>'choice_time','type'=>'checkbox'], //Table diff --git a/app/Models/Folder.php b/app/Models/Folder.php index ac5540ad..abc55666 100644 --- a/app/Models/Folder.php +++ b/app/Models/Folder.php @@ -19,7 +19,7 @@ class Folder extends Model // protected $primaryKey = 'id'; public $timestamps = false; // protected $guarded = ['id']; - protected $fillable = ['title','description','property_id','folder_table','total_price','choice_time']; + protected $fillable = ['title','description','property_id','folder_table','total_price','choice_time','on_tv','on_radio','on_subtitle','on_web']; // protected $hidden = []; // protected $dates = []; //json to array; diff --git a/database/migrations/2020_08_13_195658_changefolders_table.php b/database/migrations/2020_08_13_195658_changefolders_table.php new file mode 100644 index 00000000..da35b341 --- /dev/null +++ b/database/migrations/2020_08_13_195658_changefolders_table.php @@ -0,0 +1,36 @@ +boolean('on_tv')->nullable(); + $table->boolean('on_radio')->nullable(); + $table->boolean('on_subtitle')->nullable(); + $table->boolean('on_web')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('folders', function (Blueprint $table) { + // + }); + } +} diff --git a/resources/views/web/bukjalar.blade.php b/resources/views/web/bukjalar.blade.php index e41b9c7b..e4f6f3f4 100644 --- a/resources/views/web/bukjalar.blade.php +++ b/resources/views/web/bukjalar.blade.php @@ -23,9 +23,8 @@ margin-bottom: 1em; } - form .form-row > div{ + form .form-row > div{} - } .all_total_price{ font-size: 24px; font-weight: bold; @@ -48,6 +47,7 @@ /* color:#fff;*/ /*}*/ + a:hover,a:focus{ text-decoration: none; outline: none; @@ -59,7 +59,7 @@ .vertical-tab .nav-tabs{ display: table-cell; width: 28%; - min-width: 28%; + /*min-width: 28%;*/ vertical-align: top; border: none; } @@ -124,7 +124,7 @@ background: #fff; font-size: 14px; /*line-height: 25px;*/ - padding: 20px 20px 10px; + padding: 10px 10px; margin-top: 10px; border: 1px solid #187F7E; display: table-cell; @@ -136,6 +136,159 @@ /*text-transform: uppercase;*/ /*letter-spacing: 1px;*/ margin: 0 0 7px 0; + font-size: 18px !important; + } + .prop-desc > p{ + padding-left: 10px; + } + .folder_title{ + color:#fff; + background-color: #187F7E; + padding: 4px 0px; + margin-bottom: 0; + margin-top: 0; + } + .for-border-box{ + border:1px solid #090909; + border-right:0; + border-top:0; + } + .for-border-box div > p{ + padding-left: 10px; + } + .bukja-table{ + margin-bottom: 1.5em; + box-shadow: 3px 2px 3px #5C5C5C; + } + table tr td{ + border:1px solid #A19D9C; + border-top: 0; + border-bottom: 0; + text-align: center; + } + + table tr > td:first-child{ + border: 0; + text-align: left; + border-top: 1px solid #eaeaeb; + } + table tr > td:last-child{ + border: 0; + border-top: 1px solid #eaeaeb; + } + table tr > th{ + text-align: center; + } + table tr > th:first-child{ + text-align: left; + } + .tot_price_center_box{ + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + display: flex; + justify-content: center; + align-items: center; + } + .tot_price_center_box > span { + font-weight: bold; + font-size: 18px; + } + .left-bar{ + display: flex; + flex-flow: column; + height: 65vh; + justify-content: space-between; + } + .contact-info-box{ + border-left: 5px solid #329996; + padding-left: .8em; + font-weight: bolder; + } + .contact-info-box > h4{ + + } + .contact-info-box ul > li{ + margin: .5em 0; + } + .calc_text{ + background: #329996; + color: #fff; + margin: 0; + padding: .2em; + font-weight: normal; + } + .order-text{ + font-size: 11px; + font-weight: bold; + + } + #calculator-fix{ + display: flex; + flex-flow: column; + justify-content: space-between; + height: 65vh; + } + .yaylym-tertip{ + margin-top: 1em; + } + .yaylym-btn{ + border: 1px solid #329996; + background-color: #329996; + color: #fff; + font-weight: bold; + border-radius: 2px; + } + .yaylym-btn:hover{ + color: #fff !important; + text-decoration: underline; + } + .yaylym_text{ + font-size: 12px; + margin-top: .2em; + } + + /*for filter buttons box*/ + .filter-buttons-box{ + display:flex; + justify-content:space-between; + margin-bottom:1em; + } + .filter-btn{ + width: 20%; + border-radius: 1px; + background-color: #fff; + border:1px solid #329996; + font-size: 1em; + font-weight: bolder; + color: #187F7E; + } + .filter-btn:focus{ + outline: none; + color:#187F7E; + outline-offset: 0; + } + .filter-btn:hover{ + color:#fff; + background-color: #187F7E; + } + .active-filter-btn{ + color:#fff !important; + background-color: #187F7E; + } + /*for filter buttons box end*/ + + @media only screen and (min-width: 992px) { + .sticky { + position: fixed; + top: 10px; + width: 100%; + transition:.2s; + width: 19.5% !important; + z-index: 2; + } } @media only screen and (max-width: 479px){ .vertical-tab .nav-tabs{ @@ -154,13 +307,29 @@ .m-p-0{ padding:0; } + .left-bar{ + flex-flow: column-reverse !important; + margin-top: 1em; + height: 35vh; + } .mt-1{ + margin-top: 2em; + } + .folders-tab{ + padding: 5px 1px 5px 1px !important; + } + .m-t-c{ + text-align: center !important; + } + .filter-btn{ + width: 30%; + } + .prop_ul{ margin-top: 1em; } } -
{!! $prop->description !!}
+| Wagt aralygy | +TV | +Radio | +Subtitle | +Web | +Umumy bahasy | +
|---|---|---|---|---|---|
| @isset($table['time']) {{$table['time']}} @endisset | +@isset($table['set_tv']) {{$table['set_tv']}} @endisset | +@isset($table['set_radio']) {{$table['set_radio']}}@endisset | +@isset($table['set_sub']) {{$table['set_sub']}} @endisset | +@isset($table['set_web']) {{$table['set_web']}} @endisset | + @if($folder->total_price !== '') + @if($k < 1) +
+
+ @isset($folder->total_price) {{$folder->total_price}} TMT {{$k=$k+1}} @endisset
+
+ |
+ @endif
+ @endif
+
{!! $folder->description !!}
+{!! $folder->description !!}
+| Wagt aralygy | +TV | +Radio | +Subtitle | +Web | +Bahasy | +
|---|---|---|---|---|---|
| @isset($table['time']) {{$table['time']}} @endisset | +@isset($table['set_tv']) {{$table['set_tv']}} @endisset | +@isset($table['set_radio']) {{$table['set_radio']}} @endisset | +@isset($table['set_sub']) {{$table['set_sub']}}@endisset | +@isset($table['set_web']) {{$table['set_web']}} @endisset | +@isset($table['price']) {{$table['price']}} TMT @endisset | +
{!! $prop->description !!}
+{!! $prop->description !!}
+| Wagt aralygy | -TV | -Radio | -Subtitle | -Web | -Umumy bahasy | -
|---|
| @isset($table['time']) {{$table['time']}} @endisset | -@isset($table['set_tv']) {{$table['set_tv']}} kan. @endisset | -@isset($table['set_radio']) {{$table['set_radio']}} kan. @endisset | -@isset($table['set_sub']) {{$table['set_sub']}} kan. @endisset | -@isset($table['set_web']) {{$table['set_web']}} @endisset | - @if($folder->total_price !== '') - @if($k < 1) -@isset($folder->total_price) {{$folder->total_price}} m/sek {{$k=$k+1}} @endisset | - @endif - @endif +Wagt aralygy | +TV | +Radio | +Subtitle | +Web | +Umumy bahasy |
|---|---|---|---|---|---|---|---|---|---|---|---|
| @isset($table['time']) {{$table['time']}} @endisset | +@isset($table['set_tv']) {{$table['set_tv']}} @endisset | +@isset($table['set_radio']) {{$table['set_radio']}}@endisset | +@isset($table['set_sub']) {{$table['set_sub']}} @endisset | +@isset($table['set_web']) {{$table['set_web']}} @endisset | + @if($folder->total_price !== '') + @if($k < 1) +
+
+ @isset($folder->total_price) {{$folder->total_price}} TMT {{$k=$k+1}} @endisset
+
+ |
+ @endif
+ @endif
+
{!! $folder->description !!}
| @isset($table['time']) {{$table['time']}} @endisset | -@isset($table['price']) {{$table['price']}} m/sek. @endisset | -@isset($table['set_tv']) {{$table['set_tv']}} kan.@endisset | -@isset($table['set_radio']) {{$table['set_radio']}} kan. @endisset | -@isset($table['set_sub']) {{$table['set_sub']}} kan. @endisset | -@isset($table['set_web']) {{$table['set_web']}} @endisset | +Wagt aralygy | +TV | +Radio | +Subtitle | +Web | +Bahasy |
|---|
{!! $prop->description !!}
+{!! $prop->description !!}
+| Wagt aralygy | -TV | -Radio | -Subtitle | -Web | -Umumy bahasy | -
|---|
| @isset($table['time']) {{$table['time']}} @endisset | -@isset($table['set_tv']) {{$table['set_tv']}} kan. @endisset | -@isset($table['set_radio']) {{$table['set_radio']}} kan. @endisset | -@isset($table['set_sub']) {{$table['set_sub']}} kan. @endisset | -@isset($table['set_web']) {{$table['set_web']}} @endisset | - @if($folder->total_price !== '') - @if($k < 1) -@isset($folder->total_price) {{$folder->total_price}} m/sek {{$k=$k+1}} @endisset | - @endif - @endif +Wagt aralygy | +TV | +Radio | +Subtitle | +Web | +Umumy bahasy |
|---|---|---|---|---|---|---|---|---|---|---|---|
| @isset($table['time']) {{$table['time']}} @endisset | +@isset($table['set_tv']) {{$table['set_tv']}} @endisset | +@isset($table['set_radio']) {{$table['set_radio']}}@endisset | +@isset($table['set_sub']) {{$table['set_sub']}} @endisset | +@isset($table['set_web']) {{$table['set_web']}} @endisset | + @if($folder->total_price !== '') + @if($k < 1) +
+
+ @isset($folder->total_price) {{$folder->total_price}} TMT {{$k=$k+1}} @endisset
+
+ |
+ @endif
+ @endif
+
{!! $folder->description !!}
| @isset($table['time']) {{$table['time']}} @endisset | -@isset($table['price']) {{$table['price']}} m/sek. @endisset | -@isset($table['set_tv']) {{$table['set_tv']}} kan.@endisset | -@isset($table['set_radio']) {{$table['set_radio']}} kan. @endisset | -@isset($table['set_sub']) {{$table['set_sub']}} kan. @endisset | -@isset($table['set_web']) {{$table['set_web']}} @endisset | +Wagt aralygy | +TV | +Radio | +Subtitle | +Web | +Bahasy |
|---|