@@ -49,17 +49,17 @@ discard block |
||
| 49 | 49 | public function getPages() |
| 50 | 50 | { |
| 51 | 51 | return \DataTables::of($this->page->get()) |
| 52 | - ->addColumn('checkbox', function ($model) { |
|
| 52 | + ->addColumn('checkbox', function($model) { |
|
| 53 | 53 | return "<input type='checkbox' class='page_checkbox' |
| 54 | 54 | value=".$model->id.' name=select[] id=check>'; |
| 55 | 55 | }) |
| 56 | - ->addColumn('name', function ($model) { |
|
| 56 | + ->addColumn('name', function($model) { |
|
| 57 | 57 | return ucfirst($model->name); |
| 58 | 58 | }) |
| 59 | - ->addColumn('url', function ($model) { |
|
| 59 | + ->addColumn('url', function($model) { |
|
| 60 | 60 | return $model->url; |
| 61 | 61 | }) |
| 62 | - ->addColumn('created_at', function ($model) { |
|
| 62 | + ->addColumn('created_at', function($model) { |
|
| 63 | 63 | $created = $model->created_at; |
| 64 | 64 | if ($created) { |
| 65 | 65 | $date1 = new \DateTime($created); |
@@ -71,13 +71,13 @@ discard block |
||
| 71 | 71 | return $createdate; |
| 72 | 72 | }) |
| 73 | 73 | |
| 74 | - ->addColumn('action', function ($model) { |
|
| 74 | + ->addColumn('action', function($model) { |
|
| 75 | 75 | return '<a href='.url('pages/'.$model->id.'/edit') |
| 76 | 76 | ." class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' |
| 77 | 77 | style='color:white;'> </i> Edit</a>"; |
| 78 | 78 | }) |
| 79 | 79 | |
| 80 | - ->rawColumns(['checkbox', 'name', 'url', 'created_at', 'action']) |
|
| 80 | + ->rawColumns(['checkbox', 'name', 'url', 'created_at', 'action']) |
|
| 81 | 81 | ->make(true); |
| 82 | 82 | // ->searchColumns('name', 'content') |
| 83 | 83 | // ->orderColumns('name') |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | $selectedParent = $this->page->where('id', $id)->pluck('parent_page_id')->toArray(); |
| 110 | 110 | $parentName = $this->page->where('id', $selectedParent)->pluck('name', 'id')->toArray(); |
| 111 | 111 | |
| 112 | - return view('themes.default1.front.page.edit', compact('parents', 'page', 'selectedDefault', 'publishingDate','selectedParent', |
|
| 112 | + return view('themes.default1.front.page.edit', compact('parents', 'page', 'selectedDefault', 'publishingDate', 'selectedParent', |
|
| 113 | 113 | 'parentName')); |
| 114 | 114 | } catch (\Exception $ex) { |
| 115 | 115 | return redirect()->back()->with('fails', $ex->getMessage()); |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | \Cart::clear(); |
| 128 | 128 | $status = 'success'; |
| 129 | 129 | $message = view('themes.default1.front.postPaymentTemplate', compact('invoice','orders', |
| 130 | - 'invoiceItems', 'state', 'currency'))->render(); |
|
| 130 | + 'invoiceItems', 'state', 'currency'))->render(); |
|
| 131 | 131 | |
| 132 | 132 | return ['status'=>$status, 'message'=>$message]; |
| 133 | 133 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | \Cart::clear(); |
| 128 | 128 | $status = 'success'; |
| 129 | - $message = view('themes.default1.front.postPaymentTemplate', compact('invoice','orders', |
|
| 129 | + $message = view('themes.default1.front.postPaymentTemplate', compact('invoice', 'orders', |
|
| 130 | 130 | 'invoiceItems', 'state', 'currency'))->render(); |
| 131 | 131 | |
| 132 | 132 | return ['status'=>$status, 'message'=>$message]; |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | \Cart::clear(); |
| 147 | 147 | $status = 'success'; |
| 148 | 148 | |
| 149 | - $message = view('themes.default1.front.postRenewTemplate', compact('invoice','date', |
|
| 149 | + $message = view('themes.default1.front.postRenewTemplate', compact('invoice', 'date', |
|
| 150 | 150 | 'product', 'invoiceItem', 'state', 'currency'))->render(); |
| 151 | 151 | |
| 152 | 152 | return ['status'=>$status, 'message'=>$message]; |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $paymentid = $request->input('id'); |
| 29 | 29 | $creditAmtUserId = $this->payment->where('id', $paymentid)->value('user_id'); |
| 30 | 30 | $creditAmt = $this->payment->where('user_id', $creditAmtUserId) |
| 31 | - ->where('invoice_id', '=', 0)->value('amt_to_credit'); |
|
| 31 | + ->where('invoice_id', '=', 0)->value('amt_to_credit'); |
|
| 32 | 32 | $invoices = $invoice->where('user_id', $creditAmtUserId)->orderBy('created_at', 'desc')->get(); |
| 33 | 33 | $cltCont = new \App\Http\Controllers\User\ClientController(); |
| 34 | 34 | $invoiceSum = $cltCont->getTotalInvoice($invoices); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $payment_method, |
| 62 | 62 | $invoiceid, |
| 63 | 63 | $amount, |
| 64 | - $parent_id = '', |
|
| 64 | + $parent_id = '', |
|
| 65 | 65 | $userid = '', |
| 66 | 66 | $payment_status = 'pending' |
| 67 | 67 | ) { |
@@ -217,15 +217,15 @@ discard block |
||
| 217 | 217 | |
| 218 | 218 | return view( |
| 219 | 219 | 'themes.default1.invoice.payment', |
| 220 | - compact( |
|
| 221 | - 'invoice_status', |
|
| 222 | - 'payment_status', |
|
| 223 | - 'payment_method', |
|
| 224 | - 'invoice_id', |
|
| 225 | - 'domain', |
|
| 226 | - 'invoice', |
|
| 227 | - 'userid' |
|
| 228 | - ) |
|
| 220 | + compact( |
|
| 221 | + 'invoice_status', |
|
| 222 | + 'payment_status', |
|
| 223 | + 'payment_method', |
|
| 224 | + 'invoice_id', |
|
| 225 | + 'domain', |
|
| 226 | + 'invoice', |
|
| 227 | + 'userid' |
|
| 228 | + ) |
|
| 229 | 229 | ); |
| 230 | 230 | } |
| 231 | 231 | |