@extends('layouts.fixed') @section('title','DATE WISE EXPORT REPORT') @section('css') @stop @section('content')

Date Wise Export Report

{{--start --}}
{{ Form::open(['route'=>'datewise.export','method'=>'get']) }}
{{ Form::select('group_id',$buyers,$pi_id,['id'=>'group_id','class'=>'select2 form-control','placeholder'=>'All Buyer']) }}
{{ Form::close() }}
{{--end --}}
@if($all_exports) @if(count($all_exports) >0) @php $total = count($all_exports); $total_quantity = 0; $total_value = 0; $pageNo= 1; $i=1; @endphp

Page No: {{$pageNo++}}
Date Wise Export Report
Report From {{ $from }} To {{ $to }}

Buyer: {{ $buyer_name}}

{{--
Printed Time: {{ \Carbon\Carbon::now()->format('h:i:s A') }}
--}}
{{-- view start --}} @php $total_qty = 0; $total_inv_value = 0; $total_bill_value = 0; $total_proceed = 0; @endphp @foreach($all_exports as $export) @php $total_qty += $export->qty_pcs; $total_inv_value += $export->inv_value; $total_bill_value += $export->bill_value; $total_proceed += $export->otherExport ? $export->otherExport->pr_value : 0; @endphp @endforeach
#SL Date Buyer Qty Invoice Value ($) Bill Value ($) Proceed Realized Value ($)
{{ $i++ }} {{ date('d-m-Y', strtotime($export->bl_date)) }} {{ App\PiDetails::where('id',$export->pi_details_id)->first()->buyer_name }} {{ $export->qty_pcs }} {{ $export->inv_value }} {{ $export->bill_value }} {{ $export->otherExport ? $export->otherExport->pr_value : "" }}
Total Value {{ number_format($total_qty,2) }} $ {{ number_format($total_inv_value,2) }} $ {{ number_format($total_bill_value,2) }} $ {{ number_format($total_proceed ,2) }}
@else

No Data Found

@endif @endif @stop @section('style') @stop @section('plugin') @stop @section('script') @stop