guga push-controllers-migrations

This commit is contained in:
Guvanch Hojamov 2020-08-11 14:21:44 +05:00
parent 9184dbfb8f
commit 06da5ac329
18 changed files with 1845 additions and 0 deletions

View File

@ -0,0 +1,104 @@
<?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\FolderRequest as StoreRequest;
use App\Http\Requests\FolderRequest as UpdateRequest;
use Backpack\CRUD\CrudPanel;
/**
* Class FolderCrudController
* @package App\Http\Controllers\Admin
* @property-read CrudPanel $crud
*/
class FolderCrudController extends CrudController
{
public function setup()
{
/*
|--------------------------------------------------------------------------
| CrudPanel Basic Information
|--------------------------------------------------------------------------
*/
$this->crud->setModel('App\Models\Folder');
$this->crud->setRoute(config('backpack.base.route_prefix') . '/folders');
$this->crud->setEntityNameStrings('Bukja', 'bukjalar');
/*
|--------------------------------------------------------------------------
| CrudPanel Configuration
|--------------------------------------------------------------------------
*/
// TODO: remove setFromDb() and manually define Fields and Columns
//$this->crud->setFromDb();
$this->crud->addColumns([
['label'=>'Bukjanyň ady','name'=>'title','type'=>'text'],
['label'=>'Mazmuny','name'=>'description','type'=>'ckeditor'],
]);
$this->crud->addFields([
['label'=>'Bukjanyň ady','name'=>'title','type'=>'text'],
['label'=>'Mazmuny','name'=>'description','type'=>'ckeditor'],
//Select
[
'label'=>'Eýeçiligiň görnüşi',
'name'=>'property_id',
'type'=>'select',
'entity'=>'property',
'attribute'=>'title',
'model'=>'App\Models\PropertyType',
'option'=>(function($query){
return $query->orderBy('id','ASC')->get();
})
],
//Total Price
['label'=>'Umumy bahsy (Total price)','name'=>'total_price','type'=>'text'],
//checkBox
['label'=>'Ulanyjy wagt aralygyny saýlamaly.', 'name'=>'choice_time','type'=>'checkbox'],
//Table
[
'Label'=>'Bukjanyň tablisasy',
'name'=>'folder_table',
'type'=>'table',
'entity_singular'=>'option',
'columns'=>[
'time'=>'Wagt aralygy',
'price'=>'Bahasy',
'set_tv'=>'TV',
'set_radio'=>'Radio',
'set_sub'=>'Subtitle',
'set_web'=>'Web'
],
'min'=>'0'
],
]);
// add asterisk for fields that are required in FolderRequest
$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,69 @@
<?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\GurnawRequest as StoreRequest;
use App\Http\Requests\GurnawRequest as UpdateRequest;
use Backpack\CRUD\CrudPanel;
/**
* Class GurnawCrudController
* @package App\Http\Controllers\Admin
* @property-read CrudPanel $crud
*/
class GurnawCrudController extends CrudController
{
public function setup()
{
/*
|--------------------------------------------------------------------------
| CrudPanel Basic Information
|--------------------------------------------------------------------------
*/
$this->crud->setModel('App\Models\Gurnaw');
$this->crud->setRoute(config('backpack.base.route_prefix') . '/gurnawlar');
$this->crud->setEntityNameStrings('Gurnaw', 'Gurnawlar');
/*
|--------------------------------------------------------------------------
| CrudPanel Configuration
|--------------------------------------------------------------------------
*/
// TODO: remove setFromDb() and manually define Fields and Columns
// $this->crud->setFromDb();
$this->crud->addColumns([
['label'=>'Gurnawyň ady','name'=>'title','type'=>'text'],
['label'=>'Mazmuny','name'=>'description','type'=>'ckeditor']
]);
$this->crud->addFields([
['label'=>'Gurnawyň ady','name'=>'title','type'=>'text'],
['label'=>'Mazmuny','name'=>'description','type'=>'ckeditor']
]);
// add asterisk for fields that are required in GurnawRequest
$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,72 @@
<?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\PropertyTypeRequest as StoreRequest;
use App\Http\Requests\PropertyTypeRequest as UpdateRequest;
use Backpack\CRUD\CrudPanel;
/**
* Class PropertyTypeCrudController
* @package App\Http\Controllers\Admin
* @property-read CrudPanel $crud
*/
class PropertyTypeCrudController extends CrudController
{
public function setup()
{
/*
|--------------------------------------------------------------------------
| CrudPanel Basic Information
|--------------------------------------------------------------------------
*/
$this->crud->setModel('App\Models\PropertyType');
$this->crud->setRoute(config('backpack.base.route_prefix') . '/properties');
$this->crud->setEntityNameStrings('Eýeçiligiň görnüşi', 'Eýeçiligiň görnüşleri');
/*
|--------------------------------------------------------------------------
| CrudPanel Configuration
|--------------------------------------------------------------------------
*/
// TODO: remove setFromDb() and manually define Fields and Columns
// $this->crud->setFromDb();
$this->crud->addColumns([
['label'=>'Eýeçiligiň görnüşi', 'name'=>'title', 'type'=>'text' ],
['label'=>'Mazmuny','name'=>'description','type'=>'text'],
['label'=>'Filter uchin nomer','name'=>'filter_value','type'=>'integer']
]);
$this->crud->addFields([
['label'=>'Eýeciligiň görnüşi', 'name'=>'title','type'=>'text'],
['label'=>'Mazmuny','name'=>'description','type'=>'ckeditor'],
['label'=>'Filter üçin nomer. Diňe (1,2 ýa-da 3)','name'=>'filter_value','type'=>'number']
]);
// add asterisk for fields that are required in PropertyTypeRequest
$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,104 @@
<?php
namespace App\Http\Controllers\Admin;
use App\Models\BukjaOrder;
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\ShowBukjaOrdersRequest as StoreRequest;
use App\Http\Requests\ShowBukjaOrdersRequest as UpdateRequest;
use Backpack\CRUD\CrudPanel;
/**
* Class ShowBukjaOrdersCrudController
* @package App\Http\Controllers\Admin
* @property-read CrudPanel $crud
*/
class ShowBukjaOrdersCrudController extends CrudController
{
public function setup()
{
/*
|--------------------------------------------------------------------------
| CrudPanel Basic Information
|--------------------------------------------------------------------------
*/
$this->crud->setModel('App\Models\ShowBukjaOrders');
$this->crud->setRoute(config('backpack.base.route_prefix') . '/showbukjaorders');
$this->crud->setEntityNameStrings('Bukja zakaz', 'Bukja Zakazlar');
if (!$this->request->has('order')) {
$this->crud->orderBy('id', 'DESC');
}
$this->crud->removeButton('create');
$this->crud->removeButton('update');
// simple filter
$this->crud->addFilter([
'type' => 'text',
'name' => 'folder_name',
'label' => 'Bukja ady filter'
],
false,
function($value) { // if the filter is active
$this->crud->addClause('where', 'folder_name', 'LIKE', "%$value%");
});
// simple filter
$this->crud->addFilter([
'type' => 'text',
'name' => 'customer_name',
'label' => 'Müşderi ady filter'
],
false,
function($value) { // if the filter is active
$this->crud->addClause('where', 'customer_name', 'LIKE', "%$value%");
});
/*
|--------------------------------------------------------------------------
| CrudPanel Configuration
|--------------------------------------------------------------------------
*/
// TODO: remove setFromDb() and manually define Fields and Columns
// $this->crud->setFromDb();
$this->crud->addColumns([
['label'=>'Senesi','name'=>'created_at','type'=>'date','format'=>'DD-MMM-YYYY HH:mm:ss'],
['label'=>'Zakaz №', 'name'=>'id','type'=>'text'],
['label'=>'Bukjanyň ady', 'name'=>'folder_name','type'=>'text'],
['label'=>'Sekund sany', 'name'=>'second','type'=>'text'],
['label'=>'Gün sany', 'name'=>'day','type'=>'text'],
['label'=>'Wagt aralygy', 'name'=>'time','type'=>'text'],
['label'=>'Jemi baha', 'name'=>'total','type'=>'text'],
['label'=>'Eýeciligiň görnüşi', 'name'=>'order_prop','type'=>'text'],
['label'=>'Ady', 'name'=>'customer_name','type'=>'text'],
['label'=>'Email', 'name'=>'customer_email','type'=>'email'],
['label'=>'Telefon', 'name'=>'customer_phone','type'=>'phone'],
['label'=>'Bellikleri', 'name'=>'customer_notes','type'=>'text']
]);
// add asterisk for fields that are required in ShowBukjaOrdersRequest
$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,159 @@
<?php
namespace App\Http\Controllers;
use App\Models\BukjaOrder;
use App\Models\Folder;
use App\Models\PropertyType;
use Illuminate\Http\Request;
use function MongoDB\BSON\toJSON;
class BukjaController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
$folders = $this->getFolders();
$props=$this->getProps();
return view('web.bukjalar')->with([
'title'=>'Mahabat Nyrhnama bukjalary',
'keywords'=>'',
'meta_description'=>'',
'folders'=>$folders,
'props'=>$props
]);
}
public function getFolders(){
$allFolders = Folder::all();
return $allFolders;
}
public function getProps(){
$allProps = PropertyType::all();
return $allProps;
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
$datas = $request->except('_token');
$time='Bukjada görkezizlen wagtlar!';
//dd($datas);
$data=json_decode($datas['choices'],true);
$bukjaOrder=new BukjaOrder();
foreach ($data as $val){
if (isset($val['customer'])){
$customer=$val['customer'];
$customer_name=$customer['name'];
$customer_email=$customer['email'];
$customer_phone=$customer['phone'];
$customer_notes=$customer['notes'];
$bukjaOrder->customer_name=$customer_name;
$bukjaOrder->customer_email=$customer_email;
$bukjaOrder->customer_phone=$customer_phone;
$bukjaOrder->customer_notes=$customer_notes;
}
}
foreach ($data as $val){
if (isset($val['id'])){
$bukjaOrder=new BukjaOrder();
$bukjaOrder->customer_name=$customer_name;
$bukjaOrder->customer_email=$customer_email;
$bukjaOrder->customer_phone=$customer_phone;
$bukjaOrder->customer_notes=$customer_notes;
$order_id = $val['id'];
$second=$val['second'];
$folder_id=$val['folder_id'];
$folder_name=$val['folder_name'];
$day=$val['day'];
$time=$val['time'];
$total=$val['total'];
$folder=Folder::find($folder_id);
$order_prop=$folder->property->title;
//
$bukjaOrder->order_id=$order_id;
$bukjaOrder->folder_id=$folder_id;
$bukjaOrder->folder_name=$folder_name;
$bukjaOrder->second=$second;
$bukjaOrder->day=$day;
$bukjaOrder->time=$time;
$bukjaOrder->total=$total;
$bukjaOrder->order_prop=$order_prop;
$bukjaOrder->save();
}
// if ($checked===true){
// return 'OrderSaved';
// }
}
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
//
}
}

View File

@ -0,0 +1,59 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class FolderRequest 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'
'title'=>'required|max:255',
'folder_table'=>'required'
];
}
/**
* 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 [
//
'required'=>'Hokmany(*) setirler boş bolmaly däl!'
];
}
}

View File

@ -0,0 +1,58 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class GurnawRequest 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'
'title'=>'required|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 [
//
'required'=>'Gurnawyň adyny giriziň'
];
}
}

View File

@ -0,0 +1,59 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class PropertyTypeRequest 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'
'title'=>'required|max:255',
'filter_value'=>'required'
];
}
/**
* 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 [
//
'required'=>'Hökmany(*) setirleri giriziň!',
];
}
}

View File

@ -0,0 +1,56 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class ShowBukjaOrdersRequest 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 [
//
];
}
}

93
app/Models/BukjaOrder.php Normal file
View File

@ -0,0 +1,93 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class BukjaOrder extends Model
{
/*
|--------------------------------------------------------------------------
| GLOBAL VARIABLES
|--------------------------------------------------------------------------
*/
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'bukja_orders';
/**
* The primary key for the model.
*
* @var string
*/
protected $primaryKey = 'id';
/**
* Indicates if the model should be timestamped.
*
* @var boolean
*/
// public $timestamps = false;
/**
* The attributes that aren't mass assignable.
*
* @var array
*/
// protected $guarded = ['id'];
/**
* The attributes that are mass assignable.
*
* @var array
*/
// protected $fillable = [];
/**
* The attributes that should be hidden for arrays
*
* @var array
*/
// protected $hidden = [];
/**
* The attributes that should be mutated to dates.
*
* @var array
*/
// protected $dates = [];
/*
|--------------------------------------------------------------------------
| FUNCTIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| RELATIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| SCOPES
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| ACCESORS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| MUTATORS
|--------------------------------------------------------------------------
*/
}

62
app/Models/Folder.php Normal file
View File

@ -0,0 +1,62 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Backpack\CRUD\CrudTrait;
class Folder extends Model
{
use CrudTrait;
/*
|--------------------------------------------------------------------------
| GLOBAL VARIABLES
|--------------------------------------------------------------------------
*/
protected $table = 'folders';
// protected $primaryKey = 'id';
public $timestamps = false;
// protected $guarded = ['id'];
protected $fillable = ['title','description','property_id','folder_table','total_price','choice_time'];
// protected $hidden = [];
// protected $dates = [];
//json to array;
protected $casts = [
'folder_table'=>'array'
];
/*
|--------------------------------------------------------------------------
| FUNCTIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| RELATIONS
|--------------------------------------------------------------------------
*/
public function property(){
return $this->belongsTo('App\Models\PropertyType','property_id');
}
/*
|--------------------------------------------------------------------------
| SCOPES
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| ACCESORS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| MUTATORS
|--------------------------------------------------------------------------
*/
}

View File

@ -0,0 +1,59 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Backpack\CRUD\CrudTrait;
class PropertyType extends Model
{
use CrudTrait;
/*
|--------------------------------------------------------------------------
| GLOBAL VARIABLES
|--------------------------------------------------------------------------
*/
protected $table = 'propertytypes';
// protected $primaryKey = 'id';
public $timestamps = false;
// protected $guarded = ['id'];
protected $fillable = ['title','description','filter_value'];
// protected $hidden = [];
// protected $dates = [];
/*
|--------------------------------------------------------------------------
| FUNCTIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| RELATIONS
|--------------------------------------------------------------------------
*/
public function folder(){
return $this->hasOne('App\Models\Folder','property_id');
}
/*
|--------------------------------------------------------------------------
| SCOPES
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| ACCESORS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| MUTATORS
|--------------------------------------------------------------------------
*/
}

View File

@ -0,0 +1,55 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Backpack\CRUD\CrudTrait;
class ShowBukjaOrders extends Model
{
use CrudTrait;
/*
|--------------------------------------------------------------------------
| GLOBAL VARIABLES
|--------------------------------------------------------------------------
*/
protected $table = 'bukja_orders';
// protected $primaryKey = 'id';
// public $timestamps = false;
// protected $guarded = ['id'];
protected $fillable = ['order_id','folder_id','folder_name','second','day','time','total','order_prop','customer_name','customer_email','customer_phone','customer_notes'];
// protected $hidden = [];
// protected $dates = [];
/*
|--------------------------------------------------------------------------
| FUNCTIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| RELATIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| SCOPES
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| ACCESORS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| MUTATORS
|--------------------------------------------------------------------------
*/
}

View File

@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTablePropertyTypes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('propertytypes', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('title',255);
$table->text('description')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('propertytypes');
}
}

View File

@ -0,0 +1,37 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFoldersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('folders', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('title',255);
$table->text('description')->nullable();
$table->unsignedBigInteger('property_id');
$table->json('folder_table');
$table->boolean('choice_time')->default(0);
$table->string('total_price',255)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('folders');
}
}

View File

@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangePropertyTypesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('propertytypes', function (Blueprint $table) {
//
$table->integer('filter_value')->unsigned();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('propertytypes', function (Blueprint $table) {
//
});
}
}

View File

@ -0,0 +1,43 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTableBukjaOrders extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('bukja_orders', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('order_id')->nullable();
$table->string('folder_id')->nullable();
$table->string('folder_name');
$table->string('second');
$table->string('day');
$table->string('time')->nullable();
$table->string('total');
$table->string('order_prop');
$table->string('customer_name');
$table->string('customer_email');
$table->string('customer_phone')->nullable();
$table->string('customer_notes')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('bukja_orders');
}
}

View File

@ -0,0 +1,690 @@
@extends('web.layouts.app')
@section('after_styles')
<link rel="stylesheet" href="{{ asset ('assets/css/simple-line-icons.css')}}">
<link rel="stylesheet" href="{{ asset ('assets/libs/owl/owl-carousel/owl.carousel.css')}}">
<link rel="stylesheet" href="{{ asset ('assets/libs/owl/owl-carousel/owl.theme.css')}}">
<link rel="stylesheet" href="{{ asset ('assets/css/3dslider-style.css')}}">
@endsection
@section('content')
<style type='text/css'>
div.textarea {
width: 100%;
}
div.bukjalar-box{
/*border:1px solid red;*/
height: auto;
}
div.bukja{
/*border:1px solid blue;*/
text-align: center;
}
div.bukja > button{
width: 100%;
margin-bottom: 1em;
}
form .form-row > div{
}
.all_total_price{
font-size: 24px;
font-weight: bold;
}
.all_total_price > span{
color:green;
}
.udalit-etmeli-dal-tablitsa{
display: none !important;
}
.btn-outline-primary{
border: 1px solid darkslategray;
background: transparent;
}
/*.btn-outline-primary:hover{*/
/* border: 1px solid darkslategray;*/
/* background: steelblue;*/
/* color:#fff;*/
/*}*/
a:hover,a:focus{
text-decoration: none;
outline: none;
}
.vertical-tab{
display: table;
width: 100%;
}
.vertical-tab .nav-tabs{
display: table-cell;
width: 28%;
min-width: 28%;
vertical-align: top;
border: none;
}
.vertical-tab .nav-tabs li{
float: none;
vertical-align: top;
}
.vertical-tab .nav-tabs li a{
color: #187F7E;
background: transparent;
font-size: 1em;
font-weight: bolder;
text-align: center;
padding: 13px 10px 12px;
margin: 0 0 10px 0;
border: none;
display: block;
position: relative;
z-index: 1;
transition: all 0.1s ease 0s;
}
.vertical-tab .nav-tabs li:last-child a{ margin-bottom: 0; }
.vertical-tab .nav-tabs li a:hover,
.vertical-tab .nav-tabs li.active a,
.vertical-tab .nav-tabs li.active a:hover{
color: #fff;
background: #fff;
border: none;
/*border-top: 1px solid #d1d1d1;*/
text-shadow: 0 0 5px rgba(0,0,0,0.3);
}
/*.vertical-tab .nav-tabs li a:before,*/
.vertical-tab .nav-tabs li a:after{
content: '';
background: #2B9996;
height: 0;
width: 100%;
position: absolute;
left: 0;
top: 0;
z-index: -1;
transition: all 0.1s ease;
border-radius: 2px;
}
.vertical-tab .nav-tabs li a:before{
width: 0;
height: 4px;
top: -4px;
}
.vertical-tab .nav-tabs li a:hover:before,
.vertical-tab .nav-tabs li.active a:before,
.vertical-tab .nav-tabs li.active a:hover:before{
width: 100%;
}
.vertical-tab .nav-tabs li a:hover:after,
.vertical-tab .nav-tabs li.active a:after,
.vertical-tab .nav-tabs li.active a:hover:after{
height: 100%;
}
.vertical-tab .tab-content{
color: #333;
background: #fff;
font-size: 14px;
/*line-height: 25px;*/
padding: 20px 20px 10px;
margin-top: 10px;
border: 1px solid #187F7E;
display: table-cell;
position: relative;
}
.vertical-tab .tab-content h3{
color: #187F7E;
font-weight: 800;
/*text-transform: uppercase;*/
/*letter-spacing: 1px;*/
margin: 0 0 7px 0;
}
@media only screen and (max-width: 479px){
.vertical-tab .nav-tabs{
width: 100%;
display: block;
border: none;
}
.vertical-tab .nav-tabs li a{ margin: 0 0 10px; }
.vertical-tab .tab-content{
padding: 25px 20px;
display: block;
}
.vertical-tab .tab-content h3{ font-size: 18px; }
}
@media screen and (max-width:992px) {
.m-p-0{
padding:0;
}
.mt-1{
margin-top: 1em;
}
}
</style>
<div class="container wrapper" style = "padding-top: 10px !important;padding-bottom: 10px !important; margin-bottom: 5em;">
<div class="row" style="padding-top: 0; padding-bottom: 0">
<h2 style="margin-top: 50px"><a href="" class="fontSemiBold">Mahabat Nyrhnama bukjalary <i class="fa fa-play-circle-o"></i></a></h2>
@if(isset($folders))
@foreach($folders as $folder)
@endforeach
<div class="col-md-3 col-lg-3 col-xs-12" style="padding:0;">
<div class="vertical-tab" role="tabpanel">
<!-- Nav tabs -->
<div>
<ul class="nav nav-tabs" role="tablist" style="box-shadow: 0px 0px 5px #aaaaaa;">
@foreach($props as $prop)
<li role="presentation" class="{{ ($prop->filter_value==1) ? 'active' : ''}}" ><a href="#Section{{$prop->filter_value}}" aria-controls="home-{{$prop->id}}" role="tab" data-toggle="tab">{{$prop->title}}</a></li>
@endforeach
</ul>
</div>
</div>
</div>
<div class="col-md-6 col-lg-6 col-xs-12 m-p-0 mt-1" >
<div class="vertical-tab" role="tabpanel" style="box-shadow: 0px 0px 5px #aaaaaa; border: 0;">
<!-- Tab panes -->
<div class="tab-content tabs" style="border: 0;">
@foreach($props as $prop)
@if($prop->filter_value==1)
<div role="tabpanel" class="tab-pane fade {{ ($prop->filter_value==1) ? 'in active' : ''}}" id="Section{{$prop->filter_value}}">
<h3>{{$prop->title}}</h3>
<div class="prop-desc">
<p>{!! $prop->description !!}</p>
@foreach($folders as $folder)
@if($folder->property->filter_value ==1)
<div class="bukja-table">
<table class="table table-striped">
@if(isset($folder->total_price) & $folder->total_price !== '')
@php
$k=0
@endphp
<thead>
<div class="row">
<div class="col-md-12 col-xs-12">
<h5 class="text-center" style="border-bottom: 1px solid slategray;">
{{$folder->title}}</h5>
<p>{!! $folder->description !!}</p>
</div>
</div>
<tr>
<th scope="col">Wagt aralygy</th>
<th scope="col">TV</th>
<th scope="col">Radio</th>
<th scope="col">Subtitle</th>
<th scope="col">Web</th>
<th scope="col">Umumy bahasy</th>
</tr>
</thead>
<tbody>
@isset($folder->folder_table)
@foreach($folder->folder_table as $table)
<tr>
<td>@isset($table['time']) {{$table['time']}} @endisset</td>
<td>@isset($table['set_tv']) {{$table['set_tv']}} kan. @endisset</td>
<td>@isset($table['set_radio']) {{$table['set_radio']}} kan. @endisset</td>
<td>@isset($table['set_sub']) {{$table['set_sub']}} kan. @endisset</td>
<td>@isset($table['set_web']) {{$table['set_web']}} @endisset</td>
@if($folder->total_price !== '')
@if($k < 1)
<td rowspan="10" class="text-center">@isset($folder->total_price) {{$folder->total_price}} m/sek {{$k=$k+1}} @endisset</td>
@endif
@endif
</tr>
@endforeach
@endisset
</tbody>
@endif
@if(!isset($folder->total_price) & $folder->total_price == '')
<thead>
<div class="row">
<div class="col-md-12 col-xs-12">
<h5 class="text-center" style="border-bottom: 1px solid slategray;">
{{$folder->title}}</h5>
<p>{!! $folder->description !!}</p>
</div>
</div>
<tr>
<th scope="col">Wagt aralygy</th>
<th scope="col">Bahasy</th>
<th scope="col">TV</th>
<th scope="col">Radio</th>
<th scope="col">Subtitle</th>
<th scope="col">Web</th>
</tr>
</thead>
<tbody>
@isset($folder->folder_table)
@foreach($folder->folder_table as $table)
<tr>
<td>@isset($table['time']) {{$table['time']}} @endisset</td>
<td>@isset($table['price']) {{$table['price']}} m/sek. @endisset</td>
<td>@isset($table['set_tv']) {{$table['set_tv']}} kan.@endisset</td>
<td>@isset($table['set_radio']) {{$table['set_radio']}} kan. @endisset</td>
<td>@isset($table['set_sub']) {{$table['set_sub']}} kan. @endisset</td>
<td>@isset($table['set_web']) {{$table['set_web']}} @endisset</td>
</tr>
@endforeach
@endisset
</tbody>
@endif
</table>
</div>
@endif
@endforeach
</div>
</div>
@endif
@if($prop->filter_value==2)
<div role="tabpanel" class="tab-pane fade {{ ($prop->filter_value==1) ? 'in active' : ''}}" id="Section{{$prop->filter_value}}">
<h3>{{$prop->title}}</h3>
<div class="prop-desc">
<p>{!! $prop->description !!}</p>
@foreach($folders as $folder)
@if($folder->property->filter_value == 2)
<div class="bukja-table">
<table class="table table-striped">
@if(isset($folder->total_price) & $folder->total_price !== '')
@php
$k=0
@endphp
<thead>
<div class="row">
<div class="col-md-12 col-xs-12">
<h5 class="text-center" style="border-bottom: 1px solid slategray;">
{{$folder->title}}</h5>
<p>{!! $folder->description !!}</p>
</div>
</div>
<tr>
<th scope="col">Wagt aralygy</th>
<th scope="col">TV</th>
<th scope="col">Radio</th>
<th scope="col">Subtitle</th>
<th scope="col">Web</th>
<th scope="col">Umumy bahasy</th>
</tr>
</thead>
<tbody>
@isset($folder->folder_table)
@foreach($folder->folder_table as $table)
<tr>
<td>@isset($table['time']) {{$table['time']}} @endisset</td>
<td>@isset($table['set_tv']) {{$table['set_tv']}} kan. @endisset</td>
<td>@isset($table['set_radio']) {{$table['set_radio']}} kan. @endisset</td>
<td>@isset($table['set_sub']) {{$table['set_sub']}} kan. @endisset</td>
<td>@isset($table['set_web']) {{$table['set_web']}} @endisset</td>
@if($folder->total_price !== '')
@if($k < 1)
<td rowspan="10" class="text-center">@isset($folder->total_price) {{$folder->total_price}} m/sek {{$k=$k+1}} @endisset</td>
@endif
@endif
</tr>
@endforeach
@endisset
</tbody>
@endif
@if(!isset($folder->total_price) & $folder->total_price == '')
<thead>
<div class="row">
<div class="col-md-12 col-xs-12">
<h5 class="text-center" style="border-bottom: 1px solid slategray;">
{{$folder->title}}</h5>
<p>{!! $folder->description !!}</p>
</div>
</div>
<tr>
<th scope="col">Wagt aralygy</th>
<th scope="col">Bahasy</th>
<th scope="col">TV</th>
<th scope="col">Radio</th>
<th scope="col">Subtitle</th>
<th scope="col">Web</th>
</tr>
</thead>
<tbody>
@isset($folder->folder_table)
@foreach($folder->folder_table as $table)
<tr>
<td>@isset($table['time']) {{$table['time']}} @endisset</td>
<td>@isset($table['price']) {{$table['price']}} m/sek. @endisset</td>
<td>@isset($table['set_tv']) {{$table['set_tv']}} kan.@endisset</td>
<td>@isset($table['set_radio']) {{$table['set_radio']}} kan. @endisset</td>
<td>@isset($table['set_sub']) {{$table['set_sub']}} kan. @endisset</td>
<td>@isset($table['set_web']) {{$table['set_web']}} @endisset</td>
</tr>
@endforeach
@endisset
</tbody>
@endif
</table>
</div>
@endif
@endforeach
</div>
</div>
@endif
@if($prop->filter_value==3)
<div role="tabpanel" class="tab-pane fade {{ ($prop->filter_value==1) ? 'in active' : ''}}" id="Section{{$prop->filter_value}}">
<h3>{{$prop->title}}</h3>
<div class="prop-desc">
<p>{!! $prop->description !!}</p>
@foreach($folders as $folder)
@if($folder->property->filter_value == 3)
<div class="bukja-table">
<table class="table table-striped">
@if(isset($folder->total_price) & $folder->total_price !== '')
@php
$k=0
@endphp
<thead>
<div class="row">
<div class="col-md-12 col-xs-12">
<h5 class="text-center" style="border-bottom: 1px solid slategray;">
{{$folder->title}}</h5>
<p>{!! $folder->description !!}</p>
</div>
</div>
<tr>
<th scope="col">Wagt aralygy</th>
<th scope="col">TV</th>
<th scope="col">Radio</th>
<th scope="col">Subtitle</th>
<th scope="col">Web</th>
<th scope="col">Umumy bahasy</th>
</tr>
</thead>
<tbody>
@isset($folder->folder_table)
@foreach($folder->folder_table as $table)
<tr>
<td>@isset($table['time']) {{$table['time']}} @endisset</td>
<td>@isset($table['set_tv']) {{$table['set_tv']}} kan. @endisset</td>
<td>@isset($table['set_radio']) {{$table['set_radio']}} kan. @endisset</td>
<td>@isset($table['set_sub']) {{$table['set_sub']}} kan. @endisset</td>
<td>@isset($table['set_web']) {{$table['set_web']}} @endisset</td>
@if($folder->total_price !== '')
@if($k < 1)
<td rowspan="10" class="text-center">@isset($folder->total_price) {{$folder->total_price}} m/sek {{$k=$k+1}} @endisset</td>
@endif
@endif
</tr>
@endforeach
@endisset
</tbody>
@endif
@if(!isset($folder->total_price) & $folder->total_price == '')
<thead>
<div class="row">
<div class="col-md-12 col-xs-12">
<h5 class="text-center" style="border-bottom: 1px solid slategray;">
{{$folder->title}}</h5>
<p>{!! $folder->description !!}</p>
</div>
</div>
<tr>
<th scope="col">Wagt aralygy</th>
<th scope="col">Bahasy</th>
<th scope="col">TV</th>
<th scope="col">Radio</th>
<th scope="col">Subtitle</th>
<th scope="col">Web</th>
</tr>
</thead>
<tbody>
@isset($folder->folder_table)
@foreach($folder->folder_table as $table)
<tr>
<td>@isset($table['time']) {{$table['time']}} @endisset</td>
<td>@isset($table['price']) {{$table['price']}} m/sek. @endisset</td>
<td>@isset($table['set_tv']) {{$table['set_tv']}} kan.@endisset</td>
<td>@isset($table['set_radio']) {{$table['set_radio']}} kan. @endisset</td>
<td>@isset($table['set_sub']) {{$table['set_sub']}} kan. @endisset</td>
<td>@isset($table['set_web']) {{$table['set_web']}} @endisset</td>
</tr>
@endforeach
@endisset
</tbody>
@endif
</table>
</div>
@endif
@endforeach
</div>
</div>
@endif
@endforeach
</div>
</div>
</div>
<div class="col-md-3 col-lg-3 col-xs-12 mt-1">
<div>
<h4 class="fontSemiBold">Kalkulýator</h4>
<form id="folder_form">
<div class="form-row for-add-button">
<div class="row add_box">
<div class="calculator-box">
<div class="mb-3" style="margin-top: 1em;">
<label for="validationDefault01">Sekund sany
<i style="color:dodgerblue; cursor:pointer;" data-toggle="tooltip" data-placement="top" title="Sekund sany dushundirish" class="fa fa-info-circle"></i>
</label>
<input type="number" class="form-control" id="calc_second" placeholder="Naçe sekunt?" value="" required>
</div>
<div style="display: none;">
<span id='selected_folder_id' style="display:none;"></span>
<span id='selected_folder_text' style="display:none;"></span>
</div>
<div class="mb-3" style="margin-top: 1em;">
<label for="folder_select">Bukja
<i style="color:dodgerblue; cursor:pointer;" data-toggle="tooltip" data-placement="top" title="Bukja dushundirish" class="fa fa-info-circle"></i>
</label>
<select id="folder_select" class="form-control" name="folder_select">
<option selected>--</option>
<optgroup label="Döwlet kärhanalary we Jemgyýetçilik guramalary">
@foreach($folders as $folder)
@if($folder->property->filter_value == 1)
<option value="{{$folder->id}}" @if(isset($folder->total_price)) price="{{$folder->total_price}}" @endif>{{$folder->title}}</option>
@endif
@endforeach
</optgroup>
<optgroup label="Hususy eýeçilikdäki ýerli kärhanalar">
@foreach($folders as $folder)
@if($folder->property->filter_value == 2)
<option value="{{$folder->id}}" @if(isset($folder->total_price)) price="{{$folder->total_price}}" @endif>{{$folder->title}}</option>
@endif
@endforeach
</optgroup>
<optgroup label="Daşary ýurt kärhanalary we ilçihanalar">
@foreach($folders as $folder)
@if($folder->property->filter_value == 3)
<option value="{{$folder->id}}" @if(isset($folder->total_price)) price="{{$folder->total_price}}" @endif>{{$folder->title}}</option>
@endif
@endforeach
</optgroup>
</select>
</div>
<div class="mb-3" id="bukja_1_1_wagt" style="display: none; width: 100%; margin-top: 1em;">
<label for="select_time1">Wagt aralygy</label>
<select id="select_time1" class="form-control sel_time">
<option selected>--</option>
@foreach($folders as $folder)
@if($folder->property->filter_value == 1)
@if($folder->choice_time == true)
@foreach($folder->folder_table as $ft)
<option value="{{$ft['price']}}" data-toggle="tooltip" title="{{$ft['price']}} min/sek.">{{$ft['time']}}</option>
<span id=""></span>
@endforeach
@endif
@endif
@endforeach
</select>
</div>
<div class="mb-3" id="bukja_1_2_wagt" style="display: none; width: 100%; margin-top: 1em;">
<label for="select_time2">Wagt aralygy</label>
<span id=""></span>
<select id="select_time2" class="form-control sel_time">
<option selected>--</option>
@foreach($folders as $folder)
@if($folder->property->filter_value == 2)
@if($folder->choice_time == true)
@foreach($folder->folder_table as $ft)
<option class="time_opt" value="{{$ft['price']}}" data-toggle="tooltip" title="{{$ft['price']}} man/sek">{{$ft['time']}}</option>
@endforeach
@endif
@endif
@endforeach
</select>
</div>
<div class="mb-3" id="bukja_1_3_wagt" style="display: none; width: 100%; margin-top: 1em;">
<label for="select_time3">Wagt aralygy</label>
<span id=""></span>
<select id="select_time3" class="form-control sel_time">
<option selected>--</option>
@foreach($folders as $folder)
@if($folder->property->filter_value == 3)
@if($folder->choice_time == true)
@foreach($folder->folder_table as $ft)
<option value="{{$ft['price']}}" data-toggle="tooltip" title="{{$ft['price']}} man/sek.">{{$ft['time']}}</option>
@endforeach
@endif
@endif
@endforeach
</select>
</div>
<div class="mb-3 form-group" style="margin-top: 1em;">
<label for="folder_day">Gün
<i style="color:dodgerblue; cursor:pointer;" data-toggle="tooltip" data-placement="top" title="Gun dushundirish" class="fa fa-info-circle"></i>
</label>
<input type="number" class="form-control" id="folder_day" placeholder="Naçe gün" value="" required>
</div>
<div class=" mb-3 form-group">
<label for="all_price">Jemi baha</label>
<div class="all_total_price" style="color:#187F7E"><span id="all_price" style="color:#187F7E">0</span> TMT</div>
</div>
<div class="text-right mb-3">
<button type="button" class="btn btn-primary" id="hasapla-btn" style="font-size: 1em; background-color: #187F7E;">Hasapla</button> |
<button type="button" class="btn btn-primary" id="add_new_calc" style="font-size: 1em; background-color: #187F7E;">+</button>
</div>
<div id="customer_cases" style="margin-top: 1em;">
{{-- For orders--}}
</div>
</div>
</div>
</div>
<div class="row" id="order_it_box" style="display: none;">
<div style="margin-top:15px; width:100%; text-align: right;">
<button type="button" class="btn btn-danger" id="clear_table">Arassala</button> |
<button type="button" class="btn btn-primary" id="order_it_btn" data-toggle="modal"
data-target="#exampleModalCenter" style="background-color: #187F7E; border:1px solid #187F7E;">Sargyt et</button>
</div>
</div>
</form>
</div>
</div>
{{--Udalit-etmeli-dal--}}
<div class="nyrhnama-box">
<div class="calc-box" style="margin-bottom: 25px;">
<div class="ui active centered inline loader"></div>
<form id="folder_form">
<div class="udalit-etmeli-dal-tablitsa">
<div class="row" style="margin-top: 25px;">
<div class="col-md-12">
<h4 class="fontSemiBold">Siziň saýlan bukjalaryňyz</h4>
<h6 id="no-table-message" class="fontSemiBold" style="color: red;">Siz entek bukja saýlaňyzok.</h6>
</div>
</div>
<div id="orders-table-box" style="display: none;">
<div class="row" style="margin-top:15px;">
<div class="customer_table">
<span id="choices_count" style="display: none;"></span>
<table class="table table-bordered">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Saýlanan bukja</th>
<th scope="col">Sekund</th>
<th scope="col">Wagt aralygy</th>
<th scope="col">Gün sany</th>
<th scope="col">Bukja üçin jemi baha</th>
</tr>
</thead>
<tbody id="orders_table">
{{-- zakazy sdes--}}
</tbody>
</table>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
{{--Udalit-etmeli-dal-end--}}
@else
<div class="col-md-12 col-xs-12 text-center">
<p><b>Bukja yok</b></p>
</div>
@endif
{{--<!--Sargyt uchin modal-->--}}
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalCenterTitle">Bukjany sargyt etmek üçin aşakdaky setirleri dolduryň</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<form id="send_form" method="POST" action="{{route('bukjalar.store')}}">
<div class="modal-body">
<div class="alert alert-success" role="alert" id="alert_success" style="display: none">
Siziň bukjaňyz üstünlikli kabul edildi. Biziň işgärlerimiz tiz wagtda size jogap berer.
</div>
<div class="alert alert-danger" role="alert" id="alert_danger" style="display: none">
Ýalňyşlyk ýüze çykdy. Täzeden synanyşyň ýa-da menýudan <a href="{{route('cont')}}">Habarlaşmak üçin</a> bölümini saýlaň.
</div>
<div class="form-group">
<label for="customer_name" class="col-form-label">Ady:<span style="color:red;">*</span></label>
<input type="text" class="form-control for-clear" id="customer_name" placeholder="Sargyt edijiniň ady ýa-da familiýasy" required>
</div>
{{csrf_field()}}
<div class="form-group">
<label for="customer_phone" class="col-form-label">Telefon: <span style="color:red;">*</span></label>
<input type="text" class="form-control for-clear" id="customer_phone" placeholder="+993 61234567" required>
</div>
<div class="form-group">
<label for="customer_email" class="col-form-label">E-mail:</label>
<input type="email" class="form-control for-clear" id="customer_email" placeholder="meselem@gmail.com">
</div>
<div class="form-group">
<label for="customer_notes" class="col-form-label" >Goşmaça bellikler:</label>
<textarea class="form-control for-clear" id="customer_notes" placeholder="Mahabat etmek isleäýän zadyňyz barada şu ýerik ýazyň..."></textarea>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Yza</button>
<button type="button" class="btn btn-primary" id="customer_send_btn" style="background-color: #187F7E; border:1px solid #187F7E;">Ugrat</button>
</div>
</form>
</div>
</div>
</div>
{{--<!--Sargyt uchin modal end-->--}}
</div>
</div>
@endsection
@section('after_scripts')
<script src="{{ asset('assets/libs/owl/owl-carousel/owl.carousel.js')}}"></script>
<script src="{{ asset('assets/js/index.js')}}"></script>
<script src="{{ asset('assets/js/scripts.js')}}"></script>
@endsection