Skip to content

Commit

Permalink
updating table names
Browse files Browse the repository at this point in the history
  • Loading branch information
perladarianny15 committed Jul 29, 2021
1 parent f00defb commit 9c11f4b
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
@foreach($Data as $itemKey => $itemName)
<th wire:click="sortBy(`{{$itemKey}}`)" style="cursor: pointer">
{{$itemName['columnName']}}
@include('datatable::sort-icon', ['field'=> $itemKey])
@include('main::sort-icon', ['field'=> $itemKey])
</th>
@endforeach
</tr>
Expand Down Expand Up @@ -91,18 +91,18 @@
@elseif ($itemName['type'] == 'number')
<td>{{number_format((float)$val,2,'.',"'")}}</td>
@elseif ($itemName['type'] == 'counter')
@include('datatable::counter-option', ['id' => $item->id])
@include('main::counter-option', ['id' => $item->id])
@elseif ($itemName['type'] == 'lastRecord')
@include('datatable.lastrecord-option', ['id' => $item->id])
@include('main.lastrecord-option', ['id' => $item->id])

@elseif ($itemName['type'] == 'disable')
@include('datatable::status-option', ['optionKey' => $itemKey, 'itemValue' => $item->$itemKey, 'event' => $itemName['event'], 'id'=> $item->id])
@include('main::status-option', ['optionKey' => $itemKey, 'itemValue' => $item->$itemKey, 'event' => $itemName['event'], 'id'=> $item->id])
@endif

@endforeach

@if($showOptions)
@include('datatable::extra-options', ['id'=> $item->id])
@include('main::extra-options', ['id'=> $item->id])
@endif

</tr>
Expand Down
2 changes: 1 addition & 1 deletion src/DatatableServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function boot()

Livewire::component('main', Main::class);

$this->loadViewsFrom(__DIR__.'/../resources/views/bootstrap', 'datatable');
$this->loadViewsFrom(__DIR__.'/../resources/views/datatable', 'table');

}

Expand Down
2 changes: 1 addition & 1 deletion src/Http/Livewire/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public function render()

$paginator = new LengthAwarePaginator($items, $collection->count(), $perPage, $this->page);

return view('datatable::main', ['dataResult' => $paginator] );
return view('main::table', ['dataResult' => $paginator] );

}
}

0 comments on commit 9c11f4b

Please sign in to comment.