@extends('admin.layout') @section('title', 'Promotion History') @section('content')
Promotion History
+ New Campaign
@foreach($promotions as $index => $promo) @endforeach
SL NO Date Target Progress Credit Priority Type Status
{{ $index + 1 }} {{ $promo->created_at->format('M d, Y') }}
@ {{ $promo->instagram_username }}
@if($promo->post_url) View Post @endif
@php $done = $promo->total_actions - $promo->remaining_actions; $percent = ($promo->total_actions > 0) ? ($done / $promo->total_actions) * 100 : 0; @endphp
{{ $done }}/{{ $promo->total_actions }}
{{ $promo->total_actions * $promo->credit_per_action }} @if($promo->is_special) Special @else Normal @endif {{ $promo->type }} @if($promo->is_active) Running @else Completed @endif
@endsection