@extends('layouts.main.app') @section('head') @include('layouts.main.headersection',[ 'title' => __('Schedule Message'), 'buttons' =>[ [ 'name'=>' Create Schedule', 'url'=> route('user.schedule-message.create'), ] ]]) @endsection @section('content')
{{ number_format($totalSchedule ?? 0) }}

{{ __('Total Schedules') }}

{{ number_format($pendingSchedule ?? 0) }}

{{ __('Total Pending Schedules') }}

{{ number_format($deliveredSchedule?? 0) }}

{{ __('Schedules Executed') }}

{{ number_format($failedSchedule ?? 0) }}

{{ __('Failed Schedules') }}

@if(getUserPlanData('schedule_message') == false)
@endif @if(count($posts) > 0)

{{ __('Schedules') }}

@foreach($posts as $post) @endforeach
{{ __('Send From') }} {{ __('Title') }} {{ __('Message Type') }} {{ __('Status') }} {{ __('Delivery Date') }} {{ __('Action') }}
{{ $post->device->phone ?? '' }} {{ Str::limit($post->title ?? '',90) }} {{ $post->body != null ? 'Plain Text' : 'Template' }} {{ $post->status }} {{ Carbon\Carbon::parse($post->schedule_at)->copy()->tz($post->zone)->format('F j, Y g:i A') }}
{{ $posts->links('vendor.pagination.bootstrap-4') }}
@else
{{ __('Opps There Is No Schedules Found....') }}
@endif
@csrf @endsection @push('js') @endpush