Edit File: refused.blade.php
@extends('admin.layout.master') @section('css') <link rel="stylesheet" type="text/css" href="{{ asset('admin/app-assets/vendors/css/tables/datatable/datatables.min.css') }}"> <link rel="stylesheet" type="text/css" href="{{ asset('admin/app-assets/vendors/css/tables/datatable/extensions/dataTables.checkboxes.css') }}"> <link rel="stylesheet" type="text/css" href="{{ asset('admin/app-assets/css-rtl/pages/data-list-view.css') }}"> <link rel="stylesheet" type="text/css" href="{{ asset('admin/app-assets/css-rtl/core/colors/palette-gradient.css') }}"> <link rel="stylesheet" type="text/css" href="{{ asset('admin/app-assets/vendors/css/extensions/sweetalert2.min.css') }}"> @endsection @section('content') {{-- table --}} <x-admin.table filter="true" addbutton="{{ route('admin.stores.create')}}" deletebutton="{{ route('admin.stores.deleteAll') }}" > <x-slot name="tableHead"> <th> <label class="container-checkbox"> <input type="checkbox" value="value1" name="name1" id="checkedAll"> <span class="checkmark"></span> </label> </th> <th>{{ awtTrans('التاريخ') }}</th> <th>{{ awtTrans('صوره الايقونة') }}</th> <th>{{ awtTrans('اسم المتجر') }}</th> <th>{{ awtTrans('رقم هاتف المستخدم') }}</th> <th>{{ awtTrans('عرض المنيو') }}</th> <th>{{ awtTrans('عرض المنتجات') }}</th> <th>{{ awtTrans('التحكم') }}</th> </x-slot> <x-slot name="tableBody"> @foreach ($rows as $row) <tr class="delete_row"> <td class="text-center"> <label class="container-checkbox"> <input type="checkbox" class="checkSingle" id="{{ $row->id }}"> <span class="checkmark"></span> </label> </td> <td>{{ \Carbon\Carbon::parse($row->created_at)->format('d/m/Y') }}</td> <td><img src="{{ asset('assets/uploads/stores/'.$row->store->icon) }}" width="50px" height="50px" alt=""></td> <td>{{ $row->store->name }}</td> <td>{{ $row->phone}}</td> <td><a class="d-flex font-medium-1" href="{{url('admin/stores/menus/' .$row->store->id )}}">{{awtTrans('عرض')}}</a></td> <td><a class="d-flex font-medium-1" href="{{url('admin/stores-products/' .$row->store->id )}}">{{awtTrans('عرض')}}</a></td> <td> <div class="dropdown"> <a href="#" class="dropdown-toggle" id="folder" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></a> <div style="z-index: 100000" class="dropdown-menu dropdown-menu-right" aria-labelledby="folder" x-placement="bottom-end" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(-93px, 22px, 0px);"> <a class="dropdown-item d-flex font-medium-1" href="{{url('admin/stores/dates/' .$row->store->id )}}"><i class="font-medium-3 feather icon-eye mr-50"></i> {{ $row->store->timings->count() > 0 ? awtTrans('تعديل مواقيت العمل') : awtTrans('اضافة مواقيت العمل ')}}</a> <a class="dropdown-item d-flex font-medium-1" href="{{url('admin/stores/offer/' .$row->store->id )}}"><i class="font-medium-3 feather icon-eye mr-50"></i> {{ $row->store->offer == 'true' ? awtTrans('تعديل عرض توصيل') : awtTrans('اضافة عرض توصيل')}}</a> <a class="dropdown-item d-flex font-medium-1" href="{{url('admin/stores/branches/' .$row->store->id )}}"><i class="font-medium-3 feather icon-eye mr-50"></i> {{awtTrans('عرض الافرع')}}</a> <a class="dropdown-item d-flex font-medium-1" href="{{ route('admin.stores.show', ['id' => $row->store->id]) }}"><i class="font-medium-3 feather icon-eye mr-50"></i> {{awtTrans('عرض المتجر')}}</a> <a class="dropdown-item d-flex font-medium-1" href="{{ route('admin.stores.edit', ['id' => $row->store->id]) }}"><i class="font-medium-3 feather icon-edit mr-50"></i> {{awtTrans('تعديل')}}</a> <a class="delete-row dropdown-item d-flex font-medium-1 text-danger" href="#" data-url="{{ url('admin/stores/' . $row->id) }}"><i class="font-medium-3 feather icon-trash mr-50"></i> {{awtTrans('حذف')}}</a> </div> </div> </td> </tr> @endforeach </x-slot> </x-admin.table> {{-- #table --}} {{-- notify users model --}} <x-admin.NotifyAll route="{{ route('admin.clients.notify') }}" /> {{-- notify users model --}} @endsection @section('js') <script src="{{ asset('admin/app-assets/vendors/js/tables/datatable/datatables.min.js') }}"> </script> <script src="{{ asset('admin/app-assets/vendors/js/tables/datatable/datatables.bootstrap4.min.js') }}"> </script> <script src="{{ asset('admin/app-assets/js/scripts/ui/data-list-view.js') }}"></script> <script src="{{ asset('admin/app-assets/vendors/js/extensions/sweetalert2.all.min.js') }}"> </script> <script src="{{ asset('admin/app-assets/js/scripts/extensions/sweet-alerts.js') }}"> </script> <script> $(document).on('click' , '.accept_company', function (e) { e.preventDefault() $.ajax({ type: "post", url: "{{url('admin/stores/accept-refuse')}}", data: {status : $(this).data('status') , id : $(this).data('id')}, dataType: "json", success: (response) => { toastr.success(response.message) $(this).parent().parent().remove() } }); }); </script> {{-- delete all script --}} @include('admin.shared.deleteAll') {{-- delete all script --}} {{-- delete one user script --}} @include('admin.shared.deleteOne') {{-- delete one user script --}} {{-- notify one user or all user script --}} @include('admin.shared.notify') {{-- notify one user or all user script --}} @endsection
Back to File Manager