Edit File: updateProfile.blade.php
@extends('admin.layout.master') @section('css') <link rel="stylesheet" type="text/css" href="{{ asset('admin/app-assets/vendors/css/extensions/sweetalert2.min.css') }}"> <link rel="stylesheet" type="text/css" href="{{asset('admin/admin_index.css')}}"> @endsection @section('content') {{-- table --}} <x-admin.search-table datefilter="true" order="true" extrabuttons="true" :searchArray="[ 'name' => [ 'input_type' => 'text' , 'input_name' => awtTrans('الاسم') , ], ]" > <x-slot name="extrabuttonsdiv"> </x-slot> <x-slot name="tableContent"> <div class="table_content_append"> </div> </x-slot> </x-admin.search-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/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> <script> $(document).on('click' , '.refuse-row', function (e) { e.preventDefault() Swal.fire({ title: "{{__('هل تريد الاستمرار ؟')}}", text: "{{__('هل انت متأكد انك تريد استكمال عملية الرفض')}}", type: 'warning', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: '{{awtTrans("تأكيد")}}', confirmButtonClass: 'btn btn-primary', cancelButtonText: '{{awtTrans("الغاء")}}', cancelButtonClass: 'btn btn-danger ml-1', buttonsStyling: false, }).then( (result) => { {{--if (result.value) {--}} {{-- Swal.fire({--}} {{-- title: '{{awtTrans("سبب الرفض")}}',--}} {{-- input: 'text',--}} {{-- showCancelButton: true,--}} {{-- confirmButtonColor: '#3085d6',--}} {{-- cancelButtonColor: '#d33',--}} {{-- confirmButtonText: '{{awtTrans("تأكيد")}}',--}} {{-- confirmButtonClass: 'btn btn-primary',--}} {{-- cancelButtonText: '{{awtTrans("الغاء")}}',--}} {{-- cancelButtonClass: 'btn btn-danger ml-1',--}} {{-- buttonsStyling: false,--}} {{-- closeOnConfirm: false,--}} {{-- animation: "slide-from-top",--}} {{-- }).then( (reason) => {--}} if (result.value) { $.ajax({ type: "post", url: "{{url('admin/stores/accept-refuse')}}", data: {"id": $(this).data('id') , "status":$(this).data('status') }, dataType: "json", success: (response) => { Swal.fire( { position: 'top-start', type: 'success', title: '{{awtTrans('تم الرفض بنجاح')}}', showConfirmButton: false, timer: 1500, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) // toastr.error() $(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 --}} @include('admin.shared.filter_js' , [ 'index_route' => url('admin/stores/update-profile')]) @endsection
Back to File Manager