Viewing file: index.blade.php (8.14 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('admin.navigation')
@section('extra-css') <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"> <style>
</style> @endsection @section('content') <div class="mainSection-title"> <div class="row"> <div class="col-12"> <div class="d-flex justify-content-between align-items-center flex-wrap gr-15" > <div class="d-flex flex-column"> <h4>{{ get_phrase('Pages') }}</h4> <ul class="d-flex align-items-center eBreadcrumb-2"> <li><a href="#">{{ get_phrase('Create') }}</a></li> </ul> </div> <div class="export-btn-area"> <a href="{{route('admin.page.create')}}" class="btn btn-info btn-sm">Add page</a> </div> </div> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="eSection-wrap pb-2"> <div class="search-filter-area d-flex justify-content-md-between justify-content-center align-items-center flex-wrap gr-15"> <form action="{{ route('superadmin.school.list') }}"> <div class="search-input d-flex justify-content-start align-items-center" > <span> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" > <path id="Search_icon" data-name="Search icon" d="M2,7A4.951,4.951,0,0,1,7,2a4.951,4.951,0,0,1,5,5,4.951,4.951,0,0,1-5,5A4.951,4.951,0,0,1,2,7Zm12.3,8.7a.99.99,0,0,0,1.4-1.4l-3.1-3.1A6.847,6.847,0,0,0,14,7,6.957,6.957,0,0,0,7,0,6.957,6.957,0,0,0,0,7a6.957,6.957,0,0,0,7,7,6.847,6.847,0,0,0,4.2-1.4Z" fill="#797c8b" /> </svg> </span> <input type="text" id="search" name="search" {{-- value="{{ $search }}" --}} placeholder="Search user" class="form-control" /> </div> </form> <!-- Export Button --> @if(count($page_lists) > 0) <div class="position-relative"> <button class="eBtn-3 dropdown-toggle" type="button" id="defaultDropdown" data-bs-toggle="dropdown" data-bs-auto-close="true" aria-expanded="false" > <span class="pr-10"> <svg xmlns="http://www.w3.org/2000/svg" width="12.31" height="10.77" viewBox="0 0 10.771 12.31" > <path id="arrow-right-from-bracket-solid" d="M3.847,1.539H2.308a.769.769,0,0,0-.769.769V8.463a.769.769,0,0,0,.769.769H3.847a.769.769,0,0,1,0,1.539H2.308A2.308,2.308,0,0,1,0,8.463V2.308A2.308,2.308,0,0,1,2.308,0H3.847a.769.769,0,1,1,0,1.539Zm8.237,4.39L9.007,9.007A.769.769,0,0,1,7.919,7.919L9.685,6.155H4.616a.769.769,0,0,1,0-1.539H9.685L7.92,2.852A.769.769,0,0,1,9.008,1.764l3.078,3.078A.77.77,0,0,1,12.084,5.929Z" transform="translate(0 12.31) rotate(-90)" fill="#00a3ff" /> </svg> </span> {{ get_phrase('Export') }} </button> <ul class="dropdown-menu dropdown-menu-end eDropdown-menu-2" > <li> <a class="dropdown-item" id="pdf" href="javascript:;" onclick="Export()">{{ get_phrase('PDF') }}</a> </li> <li> <a class="dropdown-item" id="print" href="javascript:;" onclick="printableDiv('school_list')">{{ get_phrase('Print') }}</a> </li> </ul> </div> @endif </div> @if(count($page_lists) > 0) <table class="table eTable"> <thead> <tr> <th scope="col">#</th> <th scope="col">{{ get_phrase('Name') }}</th> <th scope="col">{{ get_phrase('Title') }}</th> <th scope="col">{{ get_phrase('Url') }}</th> <th scope="col">{{ get_phrase('Status') }}</th> <th scope="col" class="text-end">{{ get_phrase('Action') }}</th> </tr> </thead> <tbody> @foreach($page_lists as $key => $page_list) @php $key++; @endphp <tr> {{-- <td>{{ $page_lists->firstItem() + $key }}</td> --}} <td>{{$key++ }}</td> <td>{{ $page_list->name }}</td> <td>{{ $page_list->title }}</td> <td>{{ $page_list->url }}</td> <td>{{ $page_list->status }}</td> <td>
</td> <td class="text-start"> <div class="adminTable-action"> <button type="button" class="eBtn eBtn-black dropdown-toggle table-action-btn-2" data-bs-toggle="dropdown" aria-expanded="false" > {{ get_phrase('Actions') }} </button> <ul class="dropdown-menu dropdown-menu-end eDropdown-menu-2 eDropdown-table-action" >
<li> <a class="dropdown-item" href="{{ route('admin.page.edit', ['id' => $page_list->id]) }}">{{ get_phrase('Edit Page') }}</a> </li> <li> <a class="dropdown-item" href="{{route('admin.page.delete', ['id' => $page_list->id]) }}">{{ get_phrase('Delete') }}</a> </li> </ul> </div> </td> </tr> @endforeach </tbody> </table> {{-- {!! $page_lists->appends(request()->all())->links() !!} --}} @else <div class="empty_box center"> <img class="mb-3" width="150px" src="{{ asset('assets/images/empty_box.png') }}" /> <br> <span class="">{{ get_phrase('No data found') }}</span> </div> @endif </div> </div> </div>
@if(count($page_lists) > 0) <div class="school_list display-none-view" id="school_list"> <table class="table eTable"> <thead> <th>#</th> <th>{{ get_phrase('Name') }}</th> <th>{{ get_phrase('Address') }}</th> <th>{{ get_phrase('Phone') }}</th> <th>{{ get_phrase('Info') }}</th> <th>{{ get_phrase('Status') }}</th> </thead> <tbody> @foreach($page_lists as $key => $page_list) <tr> <td> <strong>{{ $page_list->title }}</strong> </td> <td>{{ $page_list->address }}</td> <td>{{ $page_list->phone }}</td> <td>{{ $page_list->school_info }}</td> <td> <?php if ($page_list->status == '1'): ?> <span class="eBadge ebg-success">{{ get_phrase('Active') }}</span> <?php elseif ($page_list->status == '2'): ?> <span class="eBadge ebg-info">{{ get_phrase('Pending') }}</span> <?php else: ?> <span class="eBadge ebg-danger">{{ get_phrase('Deactive') }}</span> <?php endif; ?> </td> </tr> @endforeach </tbody> </table> {{-- {!! $page_lists->appends(request()->all())->links() !!} --}} </div> @endif
@endsection
@section('extra-scripts')
@endsection
|