@extends('layouts.report_pdf') @section('title') {{__('Promo codes report')}}-{{date('Y-m-d')}} @endsection @section('content')
{{-- --}}
|
{{__('Promo codes report')}} |
{{__('Date')}} : {{date('Y-m-d H:i')}} {{__('Date range')}} : {{date('Y-m-d H:i',strtotime($data['from']))}} - {{date('Y-m-d H:i',strtotime($data['to']))}} |
| {{__('Invoices')}} | ||||||
|---|---|---|---|---|---|---|
| # | {{__('Date')}} | {{__('Branch')}} | {{__('Patient Name')}} | {{__('Promo code')}} | {{__('Discount')}} | {{__('Income')}} |
| {{$invoice['id']}} | {{date('Y-m-d H:i',strtotime($invoice['created_at']))}} | @if(isset($invoice['branch'])) {{$invoice['branch']['name_'.$locale]}} @endif | @if(isset($invoice['patient'])) {{$invoice['patient']['name']}} @endif | @if(isset($invoice['promo_code'])) {{$invoice['promo_code']['name']}} @endif | {{format_money($invoice['p_c_discount'])}} | {{format_money($invoice['total'])}} |
| {{__('Promo codes')}} | ||||
|---|---|---|---|---|
| # | {{__('Promo code')}} | {{__('Number of usages')}} | {{__('Discount')}} | {{__('Income')}} |
| {{$promo_code['id']}} | {{$promo_code['promo_code_name']}} | {{format_money($promo_code['invoices_count'])}} | {{format_money($promo_code['discount'])}} | {{format_money($promo_code['income'])}} |
| {{__('Summary')}} | |
|---|---|
| {{__('Number of usages')}} | {{format_money($data['usages_count'])}} |
| {{__('Discount')}} | {{format_money($data['discount'])}} |
| {{__('Income')}} | {{format_money($data['income'])}} |