/
var
/
www
/
flurhymez
/
resources
/
views
/
admin
/
contacts
/
/var/www/flurhymez/resources/views/admin/contacts
mkdir
upload
Name
Size
Mode
Actions
listing.blade.php
4292
0644
edit
dl
rm
show.blade.php
1787
0644
edit
dl
rm
Edit:
/var/www/flurhymez/resources/views/admin/contacts/listing.blade.php
(4292B)
@extends('admin.layout.app') @section('title', __('admin.contacts.page_title')) @section('js') <script> function deleteItem(id) { //console.log(id); $('#item_id').val(id); } </script> @endsection @section('content') <section class="page-content contacts"> <div class="card card-small mb-4"> <div class="card-body p-0 text-center"> <table class="table mb-0"> <thead> <tr> <th scope="col" class="border-0">#</th> <th scope="col" class="border-0">{{ __('admin.contacts.user_name') }}</th> <th scope="col" class="border-0">{{ __('admin.contacts.email') }}</th> <th scope="col" class="border-0">{{ __('admin.contacts.number') }}</th> <th scope="col" class="border-0">{{ __('admin.contacts.message') }}</th> <th scope="col" class="border-0">{{ __('admin.general.status') }}</th> <th scope="col" class="border-0">{{ __('admin.general.actions') }}</th> </tr> </thead> <tbody> @forelse ($contacts as $key => $contact) <tr> <td>{{ $key + 1 }}</td> <td>{{ $contact->name }}</td> <td>{{ $contact->email }}</td> <td>{{ $contact->number }}</td> <td>{{ Str::of($contact->description)->words(10, ' ...') }}</td> <td> @if ($contact->status) <span class="badge badge-primary">{{ __('admin.offers.read') }}</span> @else <span class="badge badge-warning">{{ __('admin.offers.notread') }}</span> @endif </td> <td> <div class="actions"> <a href="{{ route('contacts.show', ['id' => $contact->id]) }}" class="text-primary"><i class="material-icons-outlined mx-1">remove_red_eye</i></a> <a onclick="deleteItem({{ $contact->id }})" href="javascript:;" class="text-danger"><i data-toggle="modal" data-target="#conformModal" class="material-icons-outlined mx-1">delete_outline</i></a> </div> </td> </tr> @empty <tr> <td colspan="7">{{ __('admin.general.no_data')}}</td> </tr> @endforelse </tbody> </table> </div> </div> </section> <!-- Conform Modal --> <div class="modal fade" id="conformModal" tabindex="-1" aria-labelledby="conformModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-body"> {{ __('admin.general.sure_delete')}} </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">{{ __('admin.buttons.close')}}</button> <form action="{{ route('contacts.delete') }}" method="POST"> @csrf @method('delete') <input type="hidden" name="item_id" id="item_id"> <button type="submit" class="btn btn-danger">{{ __('admin.buttons.delete')}}</button> </form> </div> </div> </div> </div> @endsection
Save
cmd:
run