@extends('layouts.customer') @section('title','Settings') @section('extra-css') @endsection @section('content')
@can('manage_settings')
@csrf @include('customer.settings.profile_form')
@csrf @include('customer.settings.password_form')
@endcan @can('manage_campaign')
@csrf @include('customer.settings.sms_template')
@endcan @can('manage_settings')
@include('customer.settings.notification_form')
@csrf @include('customer.settings.sending_settings')
@csrf @include('customer.settings.time_zone')
@csrf @method('put') @php $counter=0; @endphp @foreach($roles as $role) @if($role->name !='main_customer') @if(auth()->user()->id==$role->customer_id)
@php $pre_role= \Spatie\Permission\Models\Role::where('name', $role->name)->first();$rolePermissions=$pre_role->getAllPermissions()->pluck('name')->toArray();@endphp @foreach(get_staff_permission() as $key=>$permission) @php $counter++; @endphp
@endforeach
@endif @endif @endforeach @if(isset($counter) && $counter > 0)
@endif
@endcan
@endsection @section('extra-scripts') @if(request()->get('sending_settings')) @endif @if(request('tab') === 'permission') @endif @endsection