commit and check
This commit is contained in:
parent
31c9fc1214
commit
68b78a84b2
|
|
@ -68,7 +68,7 @@ class BukjaController extends Controller
|
|||
{
|
||||
//Mahri001@
|
||||
|
||||
$datas = $request->toArray();
|
||||
$datas = $request->except('_token');
|
||||
$time='Bukjada görkezizlen wagtlar!';
|
||||
$datas = html_entity_decode($datas['choices']);
|
||||
$data=json_decode($datas,true);
|
||||
|
|
@ -87,10 +87,11 @@ class BukjaController extends Controller
|
|||
$bukjaOrder->customer_notes=$customer_notes;
|
||||
}
|
||||
}
|
||||
return response()->json('ok');
|
||||
|
||||
foreach ($data as $val){
|
||||
if(isset($val['id'])){
|
||||
$bukjaOrder=new BukjaOrder();
|
||||
$bukjaOrderLast = BukjaOrder::last();
|
||||
$bukjaOrder->customer_name=$customer_name;
|
||||
$bukjaOrder->customer_email=$customer_email;
|
||||
$bukjaOrder->customer_phone=$customer_phone;
|
||||
|
|
@ -104,7 +105,7 @@ class BukjaController extends Controller
|
|||
$total=$val['total'];
|
||||
$folder=Folder::find($folder_id);
|
||||
$order_prop=$folder->property->title;
|
||||
$bukjaOrder->order_id=$bukjaOrderLast->order_id;
|
||||
$bukjaOrder->order_id=$bukjaOrderLast->order_id++;
|
||||
$bukjaOrder->folder_id=$folder_id;
|
||||
$bukjaOrder->folder_name=$folder_name;
|
||||
$bukjaOrder->second=$second;
|
||||
|
|
|
|||
Loading…
Reference in New Issue