@extends('layouts.app') @section('title', __('lang_v1.dailySummaryReport')) @php $current_loc_id = old('location_id', request('location_id')); $print_location_label = __('report.all_locations'); if ($current_loc_id !== null && $current_loc_id !== '' && isset($business_locations[$current_loc_id])) { $print_location_label = $business_locations[$current_loc_id]; } $logo_file = data_get(session('business'), 'logo'); $company_logo_url = ! empty($logo_file) ? asset('uploads/business_logos/'.$logo_file) : null; @endphp @section('css') @endsection @section('content')

{{ __('lang_v1.dailySummaryReport')}}

@component('components.filters', ['title' => __('report.filters')]) {!! Form::open(['url' => action([\App\Http\Controllers\ReportController::class, 'dailySummaryReport']), 'method' => 'get' ]) !!} @php $biz_date_fmt = session('business.date_format', 'Y-m-d'); $date_range_input = old('date_range'); if (empty($date_range_input)) { $date_range_input = \Carbon\Carbon::parse($start_date)->format($biz_date_fmt) . ' ~ ' . \Carbon\Carbon::parse($end_date)->format($biz_date_fmt); } @endphp
{!! Form::label('location_id', __('purchase.business_location') . ':') !!} {!! Form::select('location_id', $business_locations, old('location_id', request('location_id')), ['class' => 'form-control select2', 'id' => 'location_id','style' => 'width:100%']); !!}
{!! Form::label('date_range', __('report.date_range') . ':') !!} {!! Form::text('date_range', $date_range_input, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'id' => 'date_range', 'readonly']); !!}

{{ @format_date($start_date) }} — {{ @format_date($end_date) }}

{!! Form::close() !!} @endcomponent
@component('components.widget', ['class' => 'box-primary', 'title' => __('purchase.purchases'), 'button'=> ' '.e(__('messages.print')).''])
{{-- --}}
@lang('lang_v1.contact_id')@lang('purchase.ref_no') @lang('purchase.supplier') @lang('sale.total') @lang('report.paid') @lang('report.due')
@endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => __('lang_v1.list_purchase_return')])
{{-- --}}
@lang('lang_v1.contact_id')@lang('purchase.ref_no') @lang('purchase.supplier') @lang('sale.total') @lang('report.paid') @lang('report.due')
@endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => __('lang_v1.purchase_payment')])
@lang('purchase.ref_no') @lang('purchase.supplier') @lang('report.paid')
@endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => __('sale.sells')])
@lang('lang_v1.contact_id') @lang('sale.customer_name') @lang('sale.invoice_no') @lang('messages.date') @lang('sale.total') (@lang('product.exc_of_tax')) @lang('sale.discount') @lang('sale.tax') @lang('sale.total') (@lang('product.inc_of_tax')) @lang('report.paid') @lang('report.due')
@endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => __('lang_v1.sell_return')])
@lang('lang_v1.contact_id') @lang('sale.customer_name') @lang('sale.invoice_no') @lang('messages.date') @lang('sale.total') (@lang('product.exc_of_tax')) @lang('sale.discount') @lang('sale.tax') @lang('sale.total') (@lang('product.inc_of_tax')) @lang('report.paid') @lang('report.due')
@endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => __('contact.customer').' — '.__('report.due')])
@lang('purchase.ref_no') @lang('contact.customer') @lang('sale.amount')
@endcomponent
{{-- /.daily-summary-print-root --}}
@endsection @section('javascript') @endsection