@extends('layouts.main.app') @section('head') @include('layouts.main.headersection',['title'=> 'Automatic Replies','buttons'=>[ [ 'name'=>'  Create Reply', 'url'=>'#', 'components'=>'data-toggle="modal" data-target="#send-template-bulk" id="send-template-bulks"', 'is_button'=>true ] ]]) @endsection @section('content')
{{ number_format($total_replies) }}

{{ __('Total Replies') }}

{{ number_format($template_replies) }}

{{ __('Template Replies') }}

{{ number_format($text_replies) }}

{{ __('Text Replies') }}

@if(getUserPlanData('chatbot') == false)
@endif @if(count($replies ?? []) == 0)

{{ __('!Opps You Have Not Created Automatic Reply') }}

{{ __('Create a reply') }}
@else
@foreach($replies ?? [] as $reply) @endforeach
{{ __('Keyword') }} {{ __('Device') }} {{ __('Reply Type') }} {{ __('Keyword Match Type') }} {{ __('Action') }}
{{ $reply->keyword }} {{ $reply->device->phone ?? '' }} {{ $reply->reply_type }} {{ $reply->match_type == 'equal' ? 'Whole Word' : 'Similar Word' }}
{{ $replies->links('vendor.pagination.bootstrap-4') }}
@endif
@endsection @push('js') @endpush