@extends('layouts.factor-master') @section('content')

@lang('layout.WeighbridgeReport')

@if($from_date || $to_date) @if($from_date) @endif @if($to_date) @endif
@lang('layout.FromDate'): @if(\Setting::get('jalali_and_gerogarian_date') == 'true') {{convertDate($from_date, null, null, ((\Setting::get('date_type') == 'jalali')?'gregorian':'jalali'))}}     @lang('layout.MarchingAt') @endif {{convertDate($from_date)}} @lang('layout.ToDate'): @if(\Setting::get('jalali_and_gerogarian_date') == 'true') {{convertDate($to_date, null, null, ((\Setting::get('date_type') == 'jalali')?'gregorian':'jalali'))}}     @lang('layout.MarchingAt') @endif {{convertDate($to_date)}}

@endif {{-- --}} @if ($sale_comparison) @endif @foreach($data AS $record) @if(getHourType() == 24) @else @endif {{-- --}} @if ($sale_comparison) @endif @endforeach
@lang('layout.Number') @lang('layout.Type') @lang('layout.TypeNumber') @lang('layout.CarNumber') @lang('layout.DriverName') @lang('layout.Date') @lang('layout.Hour')@lang('layout.Description')@lang('layout.Item') @lang('layout.Unit') @lang('layout.FullWeight') @lang('layout.EmptyWeight') @lang('layout.NetWeight')@lang('layout.SaleQty') @lang('layout.Differ')
{{$record['number']}} {{ __('layout.'. ucfirst($record['type']))}} {{$record['type_number']}} {{$record['vehicle_number']}} {{$record['driver_name']}} {{convertDate($record['date'])}}{{(($record['hour'] != null)?(date_format(date_create($record['hour']), 'H:i')):null)}}{{(($record['hour'] != null)?(date_format(date_create($record['hour']), 'h:i a')):null)}}{{$record['description']}}{{$record['item_name']}} {{$record['measure_name']}} {{$record['full_weight']}} {{$record['empty_weight']}} {{$record['net_weight']}}{{$record['sale_qty']}} {{$record['sale_qty'] - $record['net_weight']}}
@if ($sale_comparison) @endif
@lang('layout.Total') @lang('layout.NetWeight') : {{$total_net_qty}}@lang('layout.Total') @lang('layout.SaleQty') : {{$total_sale_qty}} @lang('layout.Total') @lang('layout.Differ') : {{$total_differ_qty}}
@foreach(getCompanyInfo('sign','reports') AS $info) @endforeach
{{$info['name']}}
@endsection