@extends('layouts.report_pdf') @section('title') {{__('Points system report')}}-{{date('Y-m-d')}} @endsection @section('content')
{{-- --}}
|
{{__('Points system 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')}} | {{__('Earned points')}} | {{__('Earned amount')}} | {{__('Used points')}} | {{__('Used points amount')}} | {{__('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 | {{$invoice['earned_points']}} | {{(setting('points_system')['exchange_rate'])?round($invoice['earned_points']/setting('points_system')['exchange_rate'],2):0}} | {{format_money($invoice['paid_points'])}} | {{format_money($invoice['paid_points_amount'])}} | {{format_money($invoice['total'])}} |
| {{__('Summary')}} | |
|---|---|
| {{__('Summary of earned points')}} | |
| {{__('Invoices count')}} | {{format_money($data['earned_invoices_count'])}} |
| {{__('Earned points')}} | {{format_money($data['earned_points'])}} |
| {{__('Earned amount')}} | {{format_money($data['earned_points_amount'])}} |
| {{__('Summary of used points for payment')}} | |
| {{__('Invoices count')}} | {{format_money($data['paid_invoices_count'])}} |
| {{__('Used points')}} | {{format_money($data['paid_points'])}} |
| {{__('Used points amount')}} | {{format_money($data['paid_points_amount'])}} |
| {{__('Income')}} | {{format_money($data['paid_points_income'])}} |