|
8 | 8 | 'links' => [['name' => trans('settings.settings'), 'url' => route('settings.index')]],
|
9 | 9 | 'page_title' => trans('Social media'),
|
10 | 10 | ])
|
11 |
| - <div class="card-body"> |
12 |
| - <form action='' role='form' method='POST'> |
13 |
| - @csrf |
14 |
| - |
15 |
| - <table class='table-bordered' id='settings' style='width:100%;text-align:center;'> |
16 |
| - |
17 |
| - <tbody style='text-align:center;font-weight:bolder;'> |
18 |
| - |
19 |
| - @foreach ($all_socialmedia as $each) |
20 |
| - <tr> |
21 |
| - <td> |
22 |
| - <i class='fa fa-{{$each->getName()}}"' aria-hidden='true' style='font-size:26px;'></i> |
23 |
| - {{ ucfirst($each->getName()) }} |
24 |
| - </td> |
25 |
| - <td> |
26 |
| - <input type='text' class='form-control' name='{{$each->getName()}}' value='{{htmlspecialchars($each->value)}}'> |
27 |
| - </td> |
28 |
| - </tr> |
29 |
| - @endforeach |
30 |
| - |
31 |
| - |
32 |
| - <tr> |
33 |
| - <td></td> |
34 |
| - <td><button type='submit' class='btn btn-primary'> |
35 |
| - <span class='fa fa-floppy-o' aria-hidden='true'></span> {{ trans('settings.adminarea_save_settings') }}</button> </td> |
36 |
| - </tr> |
37 |
| - |
38 |
| - </tbody> |
39 |
| - </table> |
40 |
| - </form> |
| 11 | + <div class="card-body"> |
| 12 | + <form action='{{ route('settings.store') }}' role='form' method='POST'> |
| 13 | + @csrf |
| 14 | + |
| 15 | + <table id='settings' class="w-100"> |
| 16 | + |
| 17 | + <tbody style='text-align:center;font-weight:bolder;'> |
| 18 | + |
| 19 | + @foreach ($all_socialmedia as $each) |
| 20 | + <tr> |
| 21 | + <td> |
| 22 | + <i class='fa fa-{{ $each->getName() }}"' aria-hidden='true'></i> |
| 23 | + {{ ucfirst($each->getName()) }} |
| 24 | + </td> |
| 25 | + <td> |
| 26 | + <input type='text' class='form-control' name='{{ $each->getName() }}' |
| 27 | + value='{{ htmlspecialchars($each->value) }}'> |
| 28 | + </td> |
| 29 | + </tr> |
| 30 | + @endforeach |
| 31 | + |
| 32 | + |
| 33 | + <tr> |
| 34 | + <td></td> |
| 35 | + <td><button type='submit' class='btn btn-primary'> |
| 36 | + <span class='fa fa-floppy-o' aria-hidden='true'></span> |
| 37 | + {{ trans('settings.adminarea_save_settings') }}</button> </td> |
| 38 | + </tr> |
| 39 | + |
| 40 | + </tbody> |
| 41 | + </table> |
| 42 | + </form> |
| 43 | + </div> |
41 | 44 | </div>
|
42 |
| - </div> |
43 |
| -@endsection |
| 45 | + @endsection |
0 commit comments