Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marsa Amalia
office
Commits
8b34082e
Commit
8b34082e
authored
1 year ago
by
marsaam
Browse files
Options
Download
Email Patches
Plain Diff
fitur search surat masuk aktif
parent
f2e294f5
marsa2
marsa
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Livewire/Surat/SuratMasukIndex.php
+6
-2
app/Livewire/Surat/SuratMasukIndex.php
resources/views/livewire/surat/surat-masuk-index.blade.php
+11
-0
resources/views/livewire/surat/surat-masuk-index.blade.php
with
17 additions
and
2 deletions
+17
-2
app/Livewire/Surat/SuratMasukIndex.php
View file @
8b34082e
...
...
@@ -10,7 +10,7 @@
class
SuratMasukIndex
extends
Component
{
use
WithPagination
;
public
$idHapus
,
$suratmasuks
;
public
$idHapus
,
$suratmasuks
,
$cari
;
public
$form
=
[
'jenis_agenda_tp'
=>
null
,
...
...
@@ -63,7 +63,11 @@ public function storeUpdate()
public
function
render
()
{
$data
=
ModelsSuratMasukIndex
::
paginate
(
10
);
$data
=
ModelsSuratMasukIndex
::
query
()
->
where
(
'nomor_surat'
,
'like'
,
'%'
.
$this
->
cari
.
'%'
)
->
orWhere
(
'acara'
,
'like'
,
'%'
.
$this
->
cari
.
'%'
)
->
paginate
(
10
);
return
view
(
'livewire.surat.surat-masuk-index'
,
[
'data'
=>
$data
]);
}
...
...
This diff is collapsed.
Click to expand it.
resources/views/livewire/surat/surat-masuk-index.blade.php
View file @
8b34082e
...
...
@@ -33,6 +33,17 @@
<div
class=
"content"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<div
class=
"row"
>
<div
class=
"col-8"
>
</div>
<div
class=
"col-md-4"
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"Cari"
wire:model.live=
'cari'
>
<span
class=
"input-group-text"
><i
class=
"icon-search4"
></i></span>
</div>
</div>
</div>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped dataTable"
id=
"DataTables_Table_0"
role=
"grid"
aria-describedby=
"DataTables_Table_0_info"
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help