@extends('layouts.app') @section('content')
@csrf @if ($message = Session::get('success'))

{{ $message }}

@endif

No Rujukan : {{ $lelongbid->norujukan }}

Tempoh : {{ $lelongbid->jbg }}

Kod Cawangan : {{ $lelongbid->kodcaw }}

Pembiayaan(RM) : {{ number_format($marhuns[0]['pembiayaan'], 2, '.', ',') }}

Keuntungan(RM) : {{ number_format($marhuns[0]['bakiupah'], 2, '.', ',') }}

Baki Lelong(RM) : {{ number_format($marhuns[0]['baki_lelong'], 2, '.', ',') }}

Rugi Lelong(RM) : {{ number_format($marhuns[0]['rugi_lelong'], 2, '.', ',') }}

@foreach($arraylelbidmarhun as $index1=>$detail) {{-- --}} @endforeach
Bil Marhun Karat Berat Harga Gadai (RM) Harga Lelong (RM) N. Marhun Gadai N. Marhun Lelong Harga Asas Status
{{ $loop->iteration }} @if($detail[0]['old_marhun'] != $detail[0]['marhun']) {{ $detail['old_marhun'] }} @endif {{ $detail[0]['marhun'] }} @if($detail[0]['old_karat'] != $detail[0]['karat']) {{ $detail[0]['old_karat'] }} @endif {{ $detail[0]['karat'] }} @if($detail[0]['old_berat'] != $detail[0]['berat']) {{ $detail[0]['old_berat'] }} @endif {{ $detail[0]['berat'] }} {{ number_format($detail[0]['harga_gadai'], 2, '.', ',') }} {{ number_format ($gadai[$index1]['harga'], 2, '.', ',') }} @if($detail[0]['old_harga'] != $detail[0]['harga']) {{ number_format($detail[0]['old_harga'], 2, '.', ',') }} @endif {{ number_format($detail[0]['harga'], 2, '.', ',') }} {{ number_format($detail[0]['nmarhun_gadai'], 2, '.', ',') }} @if($detail[0]['old_nmarhun'] != $detail[0]['n_marhun']) {{ number_format($detail[0]['old_nmarhun'], 2, '.', ',') }} @endif {{ number_format($detail[0]['n_marhun'], 2, '.', ',') }} @if($detail[0]['old_hargaasas'] != $detail[0]['hargaasas']) {{ number_format($detail[0]['old_hargaasas'], 2, '.', ',') }} @endif {{ number_format($detail[0]['hargaasas'], 2, '.', ',') }} @if($detail[0]['status_ubah'] == 1) @elseif($detail[0]['status_ubah'] == 2) @elseif($detail[0]['status_ubah'] == 3) @elseif($detail[0]['status_ubah'] == 4) @elseif($detail[0]['status_ubah'] == 5) @else @endif
@endsection