You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
2.0 KiB
39 lines
2.0 KiB
1 year ago
|
@foreach($campaigns as $key=>$campaign)
|
||
|
<tr>
|
||
|
<td>{{$key+1}}</td>
|
||
|
<td>
|
||
|
<span class="d-block text-body">{{Str::limit($campaign['title'],25,'...')}}
|
||
|
</span>
|
||
|
</td>
|
||
|
<td>
|
||
|
<span class="bg-gradient-light text-dark">{{$campaign->start_date?$campaign->start_date->format('d M, Y'). ' - ' .$campaign->end_date->format('d M, Y'): 'N/A'}}</span>
|
||
|
</td>
|
||
|
<td>
|
||
|
<span class="bg-gradient-light text-dark">{{$campaign->start_time?$campaign->start_time->format(config('timeformat')). ' - ' .$campaign->end_time->format(config('timeformat')): 'N/A'}}</span>
|
||
|
</td>
|
||
|
<td>{{$campaign->price}}</td>
|
||
|
{{-- <td>
|
||
|
<label class="toggle-switch toggle-switch-sm" for="campaignCheckbox{{$campaign->id}}">
|
||
|
<input type="checkbox" onclick="location.href='{{route('admin.campaign.status',['item',$campaign['id'],$campaign->status?0:1])}}'"class="toggle-switch-input" id="campaignCheckbox{{$campaign->id}}" {{$campaign->status?'checked':''}}>
|
||
|
<span class="toggle-switch-label">
|
||
|
<span class="toggle-switch-indicator"></span>
|
||
|
</span>
|
||
|
</label>
|
||
|
</td>
|
||
|
<td>
|
||
|
<div class="btn--container justify-content-center">
|
||
|
<a class="btn btn-sm btn--primary btn-outline-primary action-btn"
|
||
|
href="{{route('admin.campaign.edit',['item',$campaign['id']])}}" title="{{translate('messages.edit')}} {{translate('messages.campaign')}}"><i class="tio-edit"></i>
|
||
|
</a>
|
||
|
<a class="btn btn-sm btn--danger btn-outline-danger action-btn" href="javascript:"
|
||
|
onclick="form_alert('campaign-{{$campaign['id']}}','Want to delete this item ?')" title="{{translate('messages.delete')}} {{translate('messages.campaign')}}"><i class="tio-delete-outlined"></i>
|
||
|
</a>
|
||
|
</div>
|
||
|
<form action="{{route('admin.campaign.delete-item',[$campaign['id']])}}"
|
||
|
method="post" id="campaign-{{$campaign['id']}}">
|
||
|
@csrf @method('delete')
|
||
|
</form>
|
||
|
</td> --}}
|
||
|
</tr>
|
||
|
@endforeach
|