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

@lang('layout.FarmerContractReport')

@if($from_date) @endif @if($to_date) @endif
@lang('layout.FromDate'): {{convertDate($from_date)}} @lang('layout.ToDate'): {{convertDate($to_date)}}

@if(systemConfig()[16] != 0) @if(($member_guar)? $member_guar->name:'') @endif @endif
@lang('layout.Customer') {{ $customer->name }} @lang('layout.Phone') @lang('layout.Phone2') @lang('layout.City') @lang('layout.District') @lang('layout.Village') @lang('layout.Address')
{{ $customer->phone }} {{ $customer->phone2 }} {{ $customer->city }} {{ $customer->district }} {{ $customer->village }} {{ $customer->address1 }}
@lang('layout.Guarantor') {{ ($member_guar)? $member_guar->name:'' }} @lang('layout.FatherName') @lang('layout.Phone') @lang('layout.City') @lang('layout.District') @lang('layout.Village') @lang('layout.Address')
{{ ($member_guar)? $member_guar->father_name:''}} {{ ($member_guar)? $member_guar->phone:'' }} {{ ($member_guar)? $member_guar->city:'' }} {{ ($member_guar)? $member_guar->district:'' }} {{ ($member_guar)? $member_guar->village:'' }} {{ ($member_guar)? $member_guar->address:'' }}

@foreach($data AS $record) @endforeach
# @lang('layout.Number') @lang('layout.ReferenceNumber') @lang('layout.LandSize') @lang('layout.DrawingAmount') @lang('layout.Unit') @lang('layout.SeedAmount') @lang('layout.Unit') @lang('layout.Date') @lang('layout.OverdueDate') @lang('layout.Description')
{{++$count}} {{$record->number}} {{$record->ref_no}} {{$record->land_size}} {{$record->land_drawing_amount}} {{$record->land_measure}} {{$record->seed_amount}} {{$record->measure}} {{convertDate($record->Date)}} {{convertDate($record->overdueDate)}} @if(isset($report_format)) {{$record->sale_description}} @else {!! wordwrap($record->sale_description,40,"
\n",false) !!} @endif
@foreach(getCompanyInfo('sign','reports') AS $info) @endforeach
{{$info['name']}}
@endsection