@use('App\Services\Date') @extends('reports::layouts.master_pdf') @php $subdomain = request()->route()->parameter('subdomain'); $is_student = app(\Hyn\Tenancy\Repositories\HostnameRepository::class)->findByHostname($subdomain)->website->company->is_student; @endphp @section('koolreport') @if(app()->getLocale() == 'en') @else @endif @if(isset($data['salesTransactions']) )
@if($is_student) @include('draft_report') @endif

@lang('reports::reports.Sales Summary Report')

@lang('reports::reports.company name') :{{$data['companyName']}}

@lang('reports::reports.customer name') :{{ $data['customerDisplayName'] ?? (isset($data['customers']) ? optional($data['customers']->where('id', request('customer_id'))->first())->name : '') }}

@lang('from') {{$data['dates']['from']}} @lang('to') {{$data['dates']['to']}}


@lang('reports::reports.report summary')

@lang('reports::reports.total sales')

{{ number_format($data['total_sales'],2,".",",") }}

{!! __('settings::currencies.SAR') !!}

@lang('reports::reports.total paid')

{{ number_format($data['paid_sales'],2,".",",") }}

{!! __('settings::currencies.SAR') !!}

@lang('reports::reports.total remaining')

{{ number_format($data['remaining_sales'],2,".",",") }}

{!! __('settings::currencies.SAR') !!}

@lang('reports::reports.total payment')

{{number_format($data['total_payment'],2,".",",")}}

{!! __('settings::currencies.SAR') !!}

@lang('reports::reports.not assigned pay in')

{{ number_format($data['not_assigned_pay_in'],2,".",",") }}

{!! __('settings::currencies.SAR') !!}

@lang('reports::reports.not assigned pay out')

{{ number_format($data['not_assigned_pay_out'],2,".",",") }}

{!! __('settings::currencies.SAR') !!}

@lang('reports::reports.asset_report.Transactions History')

@if(!count($data['salesTransactions'])) @else @foreach ($data['salesTransactions'] as $transaction) @endforeach @endif
@lang('sales::transactions.Date') @lang('sales::transactions.Reference ID') @lang('sales::transactions.operation type') @lang('sales::transactions.description') @lang('sales::transactions.status') @lang('sales::transactions.gross') @lang('sales::transactions.vat') @lang('sales::transactions.total') @lang('sales::transactions.paid') @lang('sales::transactions.remaining')
{{__('reports::reports.no_data')}}
{{$transaction->date}}{{ Date::format($transaction->date, 'date') }} route_name}.show", ['subdomain' => $subdomain, "{$transaction->routeVariableName}" => $transaction->id])}}">{{$transaction->reference}} {{ $transaction->operationType }} {{ $transaction->description }} {{ $transaction->status ? Modules\Purchases\Enums\BillStatusEnum::toString($transaction->status) : ($transaction->kind ? Modules\Purchases\Enums\PaymentReceiptTypesEnum::toString($transaction->kind) : '') }} {{ number_format(abs($transaction->gross),2,".",",") }} {{ number_format(abs($transaction->total_vat),2,".",",") }} {{ number_format(abs($transaction->total),2,".",",") }} {{ ($transaction->paid_amount < 0 ) ? '(' . number_format(abs($transaction->paid_amount),2,".",",") . ')' : number_format($transaction->paid_amount,2,".",",") }} {{ ($transaction->outstanding < 0 ) ? '(' . number_format(abs($transaction->outstanding),2,".",",") . ')' : number_format($transaction->outstanding,2,".",",") }}

@lang('reports::reports.accrual_basis') {{Date::now('datetime')}}
@endif @endsection