@extends('layouts.app') @section('content')

Site Summary Reports

{{-- --}} @php($totalAmount = $impression = $totalSubtotal = $totalServiceCharge = $totalTax = $totalDiscount = $totalImpression = 0) @if (!empty($info->results) && $info->results->isNotEmpty()) @foreach ($info->results as $key => $row) @php($impression = count(DB::table('order_items')->where('url', $row->url)->get())) @php($totalAmount += $row->order_grand_total) @php($totalSubtotal += $row->order_subtotal) @php($totalServiceCharge += $row->service_charge) @php($totalTax += $row->tax) @php($totalDiscount += $row->discount) @php($totalImpression += $impression) {{-- --}} @endforeach @endif
Site IDSL Site URL Status Impression Amount Writing Price Subtotal Service Charge Tax Discount Total
{{ $row->id }} {{ $key+1 }} {{ !empty($row->live_url) ? removeHttp($row->live_url) : '' }} {{-- @if ($row->status == 'pending') {{ strFilter($row->status) }} @elseif($row->status == 'unpaid') {{ strFilter($row->status) }} @elseif($row->status == 'delete') {{ strFilter($row->status) }} @else {{ strFilter($row->status) }} @endif --}} Showing All {{ $impression }} {{ sprintf("$%0.2f", $row->url_price) }} @if ($row->billing_type == 1 && $row->is_other_price == 'yes') {{ sprintf("$%0.2f", $row->other_price) }} @endif @if ($row->billing_type == 3) {{ sprintf("$%0.2f", $row->artical) }} @endif {{ sprintf("$%0.2f", $row->order_subtotal) }} {{ sprintf("$%0.2f", $row->service_charge) }} {{ sprintf("$%0.2f", $row->tax) }} {{ sprintf("$%0.2f", $row->discount) }} {{ sprintf("$%0.2f", $row->order_grand_total) }}
Total {{ $totalImpression }} {{ sprintf("$%0.2f", $totalSubtotal) }} {{ sprintf("$%0.2f", $totalServiceCharge) }} {{ sprintf("$%0.2f", $totalTax) }} {{ sprintf("$%0.2f", $totalDiscount) }} {{ sprintf("$%0.2f", $totalAmount) }}
{{ $info->results->links() }}
@endsection @push('headerPartial') @endpush @push('footerPartial') @endpush