
<table>
    <thead>
    <tr>
        <th>#</th>
        <th>@lang('global.shop_name_arabic')</th>
        <th>@lang('global.shop_name_english')</th>
        <th>@lang('global.category')</th>
        <th>@lang('global.discount_percentage')</th>
        <th>@lang('global.amount')</th>
        <th>@lang('global.subscription_plan')</th>
        <th>@lang('global.date_and_time_of_the_subscription')</th>
        <th>@lang('global.expiry_date_of_the_subscription')</th>
        <th>@lang('global.marketer_code')</th>
    </tr>
    </thead>
    <tbody>
    @foreach($paymentTransactions as $transaction)
        <tr class="text-center">
            <td>{{$loop->iteration}}</td>
            <td>{{$transaction->user->shop_name}}</td>
            <td>{{$transaction->user->shop_name_en}}</td>
            <td>{{$transaction->category->name}}</td>
            <td>{{json_decode($transaction->marketer_details)->discount_percentage}} %</td>
            <td>{{$transaction->amount}}</td>
            <td>{{$transaction->package->name}}</td>
            <td>{{$transaction->created_at}}</td>
            <td>{{$transaction->created_at->addDays($transaction->subscribe_days)}}</td>
            <td>{{$transaction->marketer->marketer_code}}</td>
        </tr>
    @endforeach
    </tbody>
</table>
