@extends('layouts.print')
 
@section('content')
<div class="main-content-wrapper">
	<div class="main-box">
		<div class="main-content">
			<div class="container">
				<div class="page">
					<div class="row">
						<div class="layout-print">
							<div class="header">
								<div class="logo">
									<img src="{{asset('assets/images/resize')}}/{{$branch->branch_img}}" alt="" width="200px">
								</div>
								<div class="title">
									<h1>បង្កាន់ដៃទទួលប្រាក់</h1>
								</div>
							</div>
							<div class="row">
								<div class="col-6 left">
									<div class="blog">
										<div class="label">
											<label>ឈ្មោះគំរោង៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{$invoice[0]->project_name}}">
										</div>
									</div>
									<div class="blog">
										<div class="label">
											<label>លេខកូដលក់៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{$invoice[0]->item_name}}">
										</div>
									</div>
									<div class="blog">
										<div class="label">
											<label>ឈ្មោះអតិថិជន៖</label>
										</div>
										<div class="input">
											<input type="" name=""​ value="{{$invoice[0]->client_fullname}}">
										</div>
									</div>
									
									<div class="blog">
										<div class="label">
											<label>ផ្លូវលេខ៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{$invoice[0]->item_street}}">
										</div>
									</div>
									
									<div class="blog">
										<div class="label">
											<label>ផ្ទះលេខ៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{$invoice[0]->item_house}}">
										</div>
									</div>
									
								</div>
								<div class="col-6 right">
									<div class="blog">
										<div class="label">
											<label>តម្លៃផ្ទះ៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="$ {{number_format($invoice[0]->item_price,2)}}">
										</div>
									</div>

									<div class="blog">
										<div class="label">
											<label>ប្រាក់កក់៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="$ {{number_format($invoice[0]->sale_receive,2)}}">
										</div>
									</div>
									
									<div class="blog">
										<div class="label">
											<label>ថ្ងៃទទួលប្រាក់៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{\Globals::date_khmers(date('Y-m-d'))}}">
										</div>
									</div>
									<div class="blog">
										<div class="label">
											<label>លេខទូរស័ព្ទ៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{$invoice[0]->client_phone1}}">
										</div>
									</div>
									<div class="blog">
										<div class="label">
											<label>ថ្ងៃធ្វើកិច្ចសន្យា៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{\Globals::date_khmers($invoice[0]->sale_datecontract)}}">
										</div>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="footer">
									<div class="col-12">
										<div class="signature">
											<p class="p-left"><span class="note">បញ្ជាក់៖</span> ប្រាក់កក់មានសុពលភាពរយះពេល ៧ ថ្ងៃ គិតចាប់ពីថ្ងៃកក់ប្រាក់ ផុតកំណត់ទុកជាអសារបង់។</p>
										</div>
									</div>
									<div class="col-6 text-center">
										<p>អ្នកប្រគល់ប្រាក់</p>
										<div class="signature">
											<br>
										</div>
									</div>

									<div class="col-6 text-center">
										<p>អ្នកទទួលប្រាក់</p>
										<div class="signature">
											<br>
										</div>
									</div>
									<div class="col-6 text-center">
										<p>{{$invoice[0]->client_fullname}}</p>
									</div>

									<div class="col-6 text-center">
										<p>{{ $invoice[0]->agency_name }}</p>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="bottom-footer">
									<div class="">
										<div class="">
											<h2> {{$branch->branch_kh}} </h2>
											<p> {{$branch->branch_address}} ទូរស័ព្ទ : {{$branch->branch_phone}} </p>
										</div>
									</div>
									
								</div>
							</div>
							
						</div>
						<div class="layout-print">
							<div class="header">
								<div class="logo">
									<img src="{{asset('assets/images/resize')}}/{{$branch->branch_img}}" alt="" width="200px">
								</div>
								<div class="title">
									<h1>បង្កាន់ដៃទទួលប្រាក់</h1>
								</div>
							</div>
							<div class="row">
								<div class="col-6 left">
									<div class="blog">
										<div class="label">
											<label>ឈ្មោះគំរោង៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{$invoice[0]->project_name}}">
										</div>
									</div>
									<div class="blog">
										<div class="label">
											<label>លេខកូដលក់៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{$invoice[0]->item_name}}">
										</div>
									</div>
									<div class="blog">
										<div class="label">
											<label>ឈ្មោះអតិថិជន៖</label>
										</div>
										<div class="input">
											<input type="" name=""​ value="{{$invoice[0]->client_fullname}}">
										</div>
									</div>
									
									<div class="blog">
										<div class="label">
											<label>ផ្លូវលេខ៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{$invoice[0]->item_street}}">
										</div>
									</div>
									
									<div class="blog">
										<div class="label">
											<label>ផ្ទះលេខ៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{$invoice[0]->item_house}}">
										</div>
									</div>
									
								</div>
								<div class="col-6 right">
									<div class="blog">
										<div class="label">
											<label>តម្លៃផ្ទះ៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="$ {{number_format($invoice[0]->item_price,2)}}">
										</div>
									</div>

									<div class="blog">
										<div class="label">
											<label>ប្រាក់កក់៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="$ {{number_format($invoice[0]->sale_receive,2)}}">
										</div>
									</div>
									
									<div class="blog">
										<div class="label">
											<label>ថ្ងៃទទួលប្រាក់៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{\Globals::date_khmers(date('Y-m-d'))}}">
										</div>
									</div>
									<div class="blog">
										<div class="label">
											<label>លេខទូរស័ព្ទ៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{$invoice[0]->client_phone1}}">
										</div>
									</div>
									<div class="blog">
										<div class="label">
											<label>ថ្ងៃធ្វើកិច្ចសន្យា៖</label>
										</div>
										<div class="input">
											<input type="" name="" value="{{\Globals::date_khmers($invoice[0]->sale_datecontract)}}">
										</div>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="footer">
									<div class="col-12">
										<div class="signature">
											<p class="p-left"><span class="note">បញ្ជាក់៖</span> ប្រាក់កក់មានសុពលភាពរយះពេល ៧ ថ្ងៃ គិតចាប់ពីថ្ងៃកក់ប្រាក់ ផុតកំណត់ទុកជាអសារបង់។</p>
										</div>
									</div>
									<div class="col-6 text-center">
										<p>អ្នកប្រគល់ប្រាក់</p>
										<div class="signature">
											<br>
										</div>
									</div>

									<div class="col-6 text-center">
										<p>អ្នកទទួលប្រាក់</p>
										<div class="signature">
											<br>
										</div>
									</div>
									<div class="col-6 text-center">
										<p>{{$invoice[0]->client_fullname}}</p>
									</div>

									<div class="col-6 text-center">
										<p>{{ $invoice[0]->agency_name }}</p>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="bottom-footer">
									<div class="">
										<div class="">
											<h2> {{$branch->branch_kh}} </h2>
											<p> {{$branch->branch_address}} ទូរស័ព្ទ : {{$branch->branch_phone}} </p>
										</div>
									</div>
									
								</div>
							</div>
							
						</div>
					</div>
					
					
				</div>
			</div>
		</div>
	</div>
</div>

@endsection


