@extends('layouts.appori') @section('title', ' - Reports') @section('content') @php $startdate = request()->startdate; $enddate = request()->enddate; $manager_id = request()->manager_id; @endphp
N.L.M Myawaddy Logisitcs Co.,Ltd
Kaw Thaung Office
Export List
@if($startdate=="")
({{ \Carbon\Carbon::now()->format('M, Y') }} )
@endif @if($startdate<>"")
({{ "From ". \Carbon\Carbon::parse($startdate)->format('d-m-Y') ." To ". \Carbon\Carbon::parse($enddate)->format('d-m-Y') }} )
@endif
@csrf
{{-- ===== ==== --}} @php $totusd=0; $totthbamt=0; $totthb=0; @endphp @foreach ($exports as $exp) {{-- --}} @php $i++; $totusd += $usd; $totthbamt += $thbamt; $totthb += $thb; @endphp @endforeach {{-- --}}
Sr Manager Date Invoice Export Licence EDTotal WeightValues(USD) FE Rate Values(THB) Selling Rate Selling Value (THB)
{{ $i }} {{ $exp->manager->name }} {{ \Carbon\Carbon::parse($exp->eddate)->format('d-m-Y') }} {{ $exp->invno }} {{ $exp->elno }} {{ $exp->edno }}{{ $exp->weight }}{{ number_format($usd = $exp->value,2) }} {{ $exp->thbrate }} {{ number_format($thbamt = $exp->value * $exp->thbrate,2) }} {{ $exp->sellingrate . " %" }} {{ number_format($thb = ($exp->sellingrate * $thbamt)/100,2) }}
TOTAL {{ $exp->weight }}{{ number_format($totusd,2) }} {{ number_format($totthbamt,2) }} {{ number_format($totthb,2) }}
@endsection