@extends('layouts/default') {{-- Page title --}} @section('title') Invoice @parent @stop {{-- page level styles --}} @section('header_styles') @stop {{-- Page content --}} @section('content')

Job Report

{{Session::get('company')}}

{{$voucherhead}}


Date From: 01-01-1970   To: 07-08-2026

@if($stype=='summary') @if($input['job_id']!='' || $input['customer_id']!='' || $input['search_val']!='') {{--
Invoice No: {{$reports[0]->voucher_no}}
Invoice Date: {{$reports[0]->voucher_date}}
Customer: {{$reports[0]->master_name}}
Job No: {{$reports[0]->code}}

Vehicle No: {{$reports[0]->reg_no}}
Engine No: {{$reports[0]->engine_no}}
Chasis No: {{$reports[0]->chasis_no}}
Vehicle Name: {{$reports[0]->name}}
Vehicle Model: {{$reports[0]->model}}
Next Service Due: {{$reports[0]->kilometer}}
Next Service km.: {{$reports[0]->kilometer}}
Last Service km: {{$reports[0]->kilometer}}


--}} @endif @if($vehicle==1)@endif @if($vehicle==1)@endif @php $total_income = $total_expense = $total_netincome = 0; @endphp @foreach($reports as $report) @php $net_income = $report->income - $report->amount; $total_income += $report->income; $total_expense += $report->amount; $total_netincome += $net_income; @endphp @if($vehicle==1)@endif @if($vehicle==1)@endif @endforeach @if($vehicle==1) @else@endif
Job Code Job Name Customer NameVehicle NoChasis NoIncome Cost Net Income
{{ $report->code }} {{ $report->jobname }} {{ $report->master_name }}{{ $report->reg_no }}{{ $report->chasis_no }}{{ number_format($report->income,2) }} {{ number_format($report->amount,2) }} @if($net_income < 0) @php echo '('.number_format(($net_income*-1),2).')'; @endphp @else @php echo number_format($net_income,2); @endphp @endif
Grand TotalGrand Total{{number_format($total_income,2)}} {{number_format($total_expense,2)}} {{number_format($total_netincome,2)}}
@elseif($stype=='detail') @foreach($reports as $report)
@if($vehicle==1) @endif
Job No: {{$report[0]->code}}
Customer: {{$report[0]->master_name}}



Vehicle No: {{$report[0]->reg_no}}
Chasis No: {{$report[0]->chasis_no}}
Vehicle Name: {{$report[0]->name}}



@php $qty_total = $total_income = $total_expense = $total_netincome = 0; @endphp @foreach($report as $row) @php $qty_total += $row->quantity; $net_income = $row->income - $row->amount; $total_income += $row->income; $total_expense += $row->amount; $total_netincome += $net_income; @endphp @endforeach
Inv.No Date V.Type Item Description Qty. Rate Income Cost Net Income
{{ $row->voucher_no }} {{ date('d-m-Y', strtotime($row->voucher_date)) }} {{$row->vtype}} {{($row->description=='')?$row->jdesc:$row->description}} {{ ($row->quantity!=0)?$row->quantity:'' }} {{ ($row->unit_price!=0)?number_format($row->unit_price,2):'' }} {{ ($row->income!=0)?number_format($row->income,2):'' }} {{ ($row->amount!=0)?number_format($row->amount,2):'' }} {{ number_format($row->income - $row->amount,2) }}
Grand Total {{$qty_total}} {{number_format($total_income,2)}} {{number_format($total_expense,2)}} {{number_format($total_netincome,2)}}


@endforeach @elseif($stype=='stockin' || $stype=='stockout')
Type Date Vehicle No. Chasis No. Item Description Qty. Rate Value
@endif
@stop {{-- page level scripts --}} @section('footer_scripts') @stop