@extends('core::layouts.master') @section('title') {{ trans_choice('communication::general.campaign',2) }} @endsection @section('styles') @stop @section('content')

{{ trans_choice('communication::general.campaign',2) }}

{{number_format($data->total())}} {{ trans_choice('communication::general.campaign',2) }} {{ trans_choice('core::general.found',1) }}

@foreach($data as $key)
@if($key->campaign_type == 'sms') {{trans_choice('communication::general.sms', 1)}} @endif @if($key->campaign_type == 'email') {{trans_choice('communication::general.email', 1)}} @endif
@if(!empty($key->created_by)) {{$key->created_by->full_name}} @endif
@if($key->trigger_type == 'direct') {{trans_choice('communication::general.direct', 1)}} @endif @if($key->trigger_type == 'schedule') {{trans_choice('communication::general.schedule', 1)}} @endif @if($key->trigger_type == 'triggered') {{trans_choice('communication::general.triggered', 1)}} @endif
@if($key->status == 'pending') {{trans_choice('communication::general.pending', 1)}} @endif @if($key->status == 'active') {{trans_choice('communication::general.active', 1)}} @endif @if($key->status == 'inactive') {{trans_choice('communication::general.inactive', 1)}} @endif @if($key->status == 'closed') {{trans_choice('communication::general.closed', 1)}} @endif @if($key->status == 'done') {{trans_choice('communication::general.done', 1)}} @endif
@endforeach
{{$data->links()}}
{{ trans_choice('core::general.page',1) }} {{$data->currentPage()}} {{ trans_choice('core::general.of',1) }} {{$data->lastPage()}}
@endsection @section('scripts') @endsection