diff --git a/app/Http/Controllers/designer/DesignerController.php b/app/Http/Controllers/designer/DesignerController.php index 49d9530..df8c5cf 100644 --- a/app/Http/Controllers/designer/DesignerController.php +++ b/app/Http/Controllers/designer/DesignerController.php @@ -957,13 +957,24 @@ class DesignerController extends Controller { public function addNewRow(Request $request){ $post = $request->all(); + $TeamStoreModel = new TeamStoreModel; + $newDesignerModel = new DesignerModel; + $trCount = $post['itemCount']; $tempCode = $post['tempCode']; - - $newDesignerModel = new DesignerModel; - $jersey_sizes = $newDesignerModel->getAvailableSizes($tempCode, 'JERSEY'); - $shorts_sizes = $newDesignerModel->getAvailableSizes($tempCode, 'SHORTS'); + $avalable_sizes = $post['avalable_sizes']; + + $x = explode(",", $avalable_sizes ); + foreach($x as $s){ + $h[] = $TeamStoreModel->getSizesByBracket($s); + } + + foreach($h as $d){ + foreach($d as $g){ + $sizes_array[] = $g; + } + } ?>
| Invoice No. | @@ -56,6 +56,15 @@Price | Quantity | # | +Payer Email | +Payer Fullname | +Recipient Name | +Address Line 1 | +Address Line 2 | +City | +State | +Postal Code | +Country Code | Date Ordered | Action | {{ $item_order->Price . ' ' . $item_order->Currency }} | {{ $item_order->Quantity }} | {{ date('Y/m/d', strtotime($item_order->DateCreated)) }} | +{{ $item_order->Payer_Email }} | +{{ $item_order->Payer_Firstname . ' ' . $item_order->Payer_Lastname }} | +{{ $item_order->recipient_name }} | +{{ $item_order->line1 }} | +{{ $item_order->line2 }} | +{{ $item_order->city }} | +{{ $item_order->state }} | +{{ $item_order->postal_code }} | +{{ $item_order->country_code }} | {{ date('F j, Y g:i a', strtotime($item_order->DateCreated)) }} |
View Details
diff --git a/resources/views/user-layouts/user_template.blade.php b/resources/views/user-layouts/user_template.blade.php
index fea4feb..89d72df 100644
--- a/resources/views/user-layouts/user_template.blade.php
+++ b/resources/views/user-layouts/user_template.blade.php
@@ -549,6 +549,11 @@
padding: 0 15px;
}
}
+ /* table.dataTable td,table.dataTable th {
+ padding: 3px 10px;
+ width: 1px;
+ white-space: nowrap;
+ } */
@@ -650,45 +655,65 @@
$("#min").datepicker({ onSelect: function () { table.draw(); }, changeMonth: true, changeYear: true });
$("#max").datepicker({ onSelect: function () { table.draw(); }, changeMonth: true, changeYear: true });
var table = $('#tbl_store_orders').DataTable({
+ scrollX: true,
dom: 'Bfrtip',
buttons: [
{
extend: 'csv',
exportOptions: {
- columns: [ 0, 1, 2, 3, 5 ]
+ columns: [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ]
},
className : "btn btn-default",
- text: " CSV"
+ text: " CSV",
+ title : function() {
+ return "ORDER REPORTS";
+ }
},
{
extend: 'excel',
exportOptions: {
- columns: [ 0, 1, 2, 3, 5 ]
+ columns: [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ]
},
className : "btn btn-default",
- text: " Excel"
- },
- {
- extend: 'pdf',
- exportOptions: {
- columns: [ 0, 1, 2, 3, 5 ]
- },
- className : "btn btn-default",
- text: " PDF"
- },
- {
- extend: 'print',
- exportOptions: {
- columns: [ 0, 1, 2, 3, 5 ]
- },
- className : "btn btn-default",
- text : " Print"
- }
+ text: " Excel",
+ title : function() {
+ return "ORDER REPORTS";
+ }
+ }
+ //,
+ // {
+ // extend: 'pdf',
+ // exportOptions: {
+ // columns: [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ]
+ // },
+ // className : "btn btn-default",
+ // text: " PDF",
+ // orientation: 'landscape',
+ // pageSize: 'LEGAL',
+ // title : function() {
+ // return "ORDER REPORTS";
+ // }
+
+ // },
+ // {
+ // extend: 'print',
+ // exportOptions: {
+ // columns: [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ]
+ // },
+ // className : "btn btn-default",
+ // text : " Print",
+ // orientation: 'landscape',
+ // pageSize: 'LEGAL',
+ // title : function() {
+ // return "ORDER REPORTS";
+ // }
+ // }
],
columnDefs: [
{ targets: 4, type: 'date', visible: false },
{ targets: 5, type: 'date' }
- ]
+ ],
+
});
// Event listener to the two range filtering inputs to redraw on input
@@ -820,7 +845,7 @@
}
}else{
reader.onload = function(event) {
- $( ".small-preview-thumb" ).prepend(' |
|---|