/home/awneajlw/.trash/resources.2/views/admin/subAdmin/show.blade.php
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<meta charset="UTF-8">
<head>
<title>Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@if ($sale->direction == 'horizontal')
<style>
.page {
width: 1123px;
height: 794px;
margin: 0 auto;
background: white;
position: relative;
}
</style>
@else
<style>
.page {
width: 794px;
height: 1123px;
margin: 0 auto;
background: white;
position: relative;
}
</style>
@endif
<style>
/* Global Styling */
* {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
/* font-family: 'Lato'; Uncomment to use Lato fonts */
letter-spacing: 0.8px;
margin: 0;
padding: 0;
font-family: 'DejaVu Sans', sans-serif; /* Ensures compatibility for PDFs */
}
p {
margin: 0;
padding: 0;
}
/* Font Size Classes */
.ft10 { font-size: 10px; color: #000000; }
.ft11 { font-size: 11px; color: #000000; }
.ft12 { font-size: 12px; color: #000000; }
.ft13 { font-size: 13px; color: #000000; }
.ft14 { font-size: 14px; color: #000000; }
.ft15 { font-size: 15px; color: #000000; }
.ft25 { font-size: 23px; color: #000000; }
/* Table Styling */
table {
border-collapse: collapse;
width: 100%;
}
th, td {
padding: 5px;
text-align: left;
border: 1px solid #ddd;
}
th {
color: #3496AF;
}
/* Uncomment if using Arabic content */
/*
@font-face {
font-family: "Amiri", serif;
font-weight: 400;
font-style: normal;
}
.arabic-text {
font-family: "Amiri", serif;
font-weight: 400;
font-style: normal;
}
*/
</style>
</head>
<body bgcolor="white" vlink="blue" link="blue">
<div class="page">
{{-- <h2 style="color: gray; position: absolute; top:20px;left:20px;">SAFE EYES TRADING</h2> --}}
<h2 style="color: gray; position: absolute; top:20px;left:20px;">{{ @$userDetail->brand_name }}</h2>
{{-- <h4 style="color: gray; position: absolute; top:60px;left:20px;">Gold & Jewellery</h4> --}}
<h4 style="color: gray; position: absolute; top:60px;left:20px;">{{ @$userDetail->brand_detail }}</h4>
<div style="position: absolute; top:10px;left:43%; height:100px; " >
{{-- <img src="{{asset('/images/logo/logo.png')}}" alt="Not Found" width="100%"> --}}
<img src="{{asset( @$userDetail->brand_logo )}}" alt="Not Found" height="100%" >
</div>
{{-- <h3 style="color: gray; position: absolute; top:20px;right:20px;">SAFE EYES TRADING</h3> --}}
<h3 style="color: gray; position: absolute; top:30px;right:20px;">{{ @$userDetail->brand_name }}</h3>
{{-- <p class="ft13" style=" position: absolute; top:45px;right:20px;">مؤسسة العيون الامنة </p> --}}
{{-- <p class="ft13" style=" position: absolute; top:65px;right:20px;">alazizyah </p> --}}
<p class="ft13" style=" position: absolute; top:70px;right:20px;">{{ @$userDetail->address }}</p>
<p class="ft13" style=" position: absolute; top:100px;right:20px;"> {{ @$userDetail->country }}</p>
<div style="position: absolute; top: 145px; left: 0px;right: 0; border-bottom: .5px solid rgb(178, 178, 178);">
<!-- <hr> -->
</div>
<h4 style="color: gray; position: absolute; top:122px;left:48%;">{{@$sale->id . @$sale->branch_id}}</h4>
@if ($sale->language == 'arabic')
<h4 style="color: gray; position: absolute; top:145px;left:45%;"> فاتورة نقدية</h4>
@else
<h4 style="color: gray; position: absolute; top:145px;left:45%;"> CASH INVOICE</h4>
@endif
<div style="position: absolute; top:170px;left:40px; width:90px">
@if($sale->qr_ksa)
<img src="{{ asset($sale->qr_ksa) }}" alt="KSA E-Invoice QR Code" width="100%">
@else
<img src="{{asset('@$sale->qr_ksa')}}" alt="Not Found" width="100%">
@endif
</div>
{{-- <p class="ft13 arabic-text" style=" position: absolute; top:230px;right:750px;">:<bdi>الرقم</bdi></p> --}}
@if ($sale->language == 'arabic')
<p class="ft13 arabic-text" style=" position: absolute; top:230px;left:150px;">{{@$sale->created_at}} :تاريخ</p>
@else
<p class="ft13 arabic-text" style=" position: absolute; top:230px;left:150px;">Date: {{@$sale->created_at}} </p>
@endif
@if ($sale->language == 'arabic')
<p class="ft13 arabic-text" style=" position: absolute; top:255px;left:150px;">{{@$sale->user->name}}:البانع</p>
@else
<p class="ft13 arabic-text" style=" position: absolute; top:255px;left:150px;">The seller: {{@$sale->user->name}}</p>
@endif
<p class="ft13" style=" position: absolute; top:175px;right:20px;">{{ @$userDetail->company_ltd }}</p>
@if ($sale->language == 'arabic')
<p class="ft13" style=" position: absolute; top:190px;right:20px;">VAT Number: {{ @$sale->vat_no }}</p>
@else
<p class="ft13" style=" position: absolute; top:190px;right:20px;">{{ @$sale->vat_no }}:رقم ضريبة القيمة المضافة</p>
@endif
@if ($sale->language == 'arabic')
<p class="ft13 arabic-text" style=" position: absolute; top:230px;right:20px;"> {{@$sale->buyer_name}} :اسـم العميل</p>
@else
<p class="ft13 arabic-text" style=" position: absolute; top:230px;right:20px;"> Customer name: {{@$sale->buyer_name}}</p>
@endif
@if ($sale->language == 'arabic')
<p class="ft13 arabic-text" style=" position: absolute; top:255px;right:20px;"> {{@$sale->id . @$sale->branch_id}}:رقم العميل</p>
@else
<p class="ft13 arabic-text" style=" position: absolute; top:255px;right:20px;"> Customer number: {{@$sale->id . @$sale->branch_id}}</p>
@endif
@if ($sale->language == 'arabic')
<p class="ft25" style="position: absolute; top:300px;left:40px">
مشروع الفاتورة
</p>
@else
<p class="ft25" style="position: absolute; top:300px;left:40px">
Draft Invoice
</p>
@endif
<p class="ft25" style="position: absolute; top:300px;left:40%">
INV/2024/{{@$sale->id }}
</p>
@if ($sale->language == 'arabic')
<p class="ft25" style="position: absolute; top:300px;right: 20px;">
فاتورة مسودة
</p>
@else
<p class="ft25" style="position: absolute; top:300px;right: 20px;">
Draft invoice
</p>
@endif
<table class="ft13" style="position: absolute; top:335px;right: 30px; left: 30px; border: 2px solid black; width: 94%;" border="2px solid black">
<tr>
<th>
@if ($sale->language == 'arabic')
السعر الاجمالي
@else
TOTAL PRICE
@endif
</th>
<th>
@if ($sale->language == 'arabic')
اسم
@else
Name
@endif
</th>
<th>
@if ($sale->language == 'arabic')
قيمة الضريبة
@else
VAT AMOUNT
@endif
</th>
<th>
@if ($sale->language == 'arabic')
العدد
@else
UNIT PRICE
@endif
</th>
<th>
@if ($sale->language == 'arabic')
ؤصف الصنف
@else
QUANTITY
@endif
</th>
<th>
@if ($sale->language == 'arabic')
رقم الصنف
@else
DESCRIPTION
@endif
</th>
</tr>
{{-- <tr>
<th>
السعر الاجمالي <br> TOTAL PRICE
</th>
<th>
قيمة الضريبة <br>VAT AMOUNT
</th>
<th>
مبلغ <br>AMOUNT
</th>
<th>
لضرائب <br>TAXES
</th>
<th>
سعر الوحدة <br>UNIT PRICE
</th>
<th>
ا لكمية <br>QUANTITY
</th>
<th>
الوصف <br>DESCRIPTION
</th>
</tr> --}}
@foreach ($sale->saleItems as $item)
<tr>
<td>
{{ @$item->price }}
</td>
<td>
{{@$item->inventory->name}}
</td>
<td>
{{$item->vat}}
</td>
<td>
{{@$item->inventory->price}}
</td>
<td>
{{@$item->quantity_sold}}
</td>
<td>
{{@$item->inventory->description}}
</td>
</tr>
@endforeach
</table>
<table class="ft13" style="position: absolute; bottom:180px;left: 30px; width:300px; border: 2px solid black; " border="2px solid black">
<tr>
<td>
{{@$sale->price}}
</td>
<th>
@if ($sale->language == 'arabic')
الإجمالي الفرعي
@else
Subtotal
@endif
</th>
</tr>
{{--
<tr>
<td>
VAT Taxes
</td>
<td>
{{@$item->vat}}
</td>
</tr> --}}
<tr>
<td>
{{@$sale->total_price}}
</td>
<td>
@if ($sale->language == 'arabic')
المجموع
@else
Total
@endif
</td>
</tr>
</table>
@if ($sale->language == 'arabic')
<p class="ft12" style="position: absolute; bottom: 105px; right: 20px;">
رقم إشارة الدفعة: {{ @$userDetail->payment_reference }} </p>
@else
<p class="ft12" style="position: absolute; bottom: 105px; right: 20px;">
Payment Reference : {{ @$userDetail->payment_reference }}INV
</p>
@endif
<div style="position: absolute; bottom: 100px; left: 0px;right: 0; border-bottom: 2px solid rgb(178, 178, 178);">
<!-- <hr> -->
</div>
<p class="ft15" style="position: absolute; bottom:60px;right: 34%;">
{{ @$userDetail->footer_no_email }}
</p>
@if ($sale->language == 'arabic')
<p class="ft15" style="position: absolute; bottom:30px;right: 25%;">
{{ @$userDetail->footer_iban }}رقم الحساب المصرفي الدولي لبنك الرياض:
</p>
@else
<p class="ft15" style="position: absolute; bottom:30px;right: 25%;">
Riyadh Bank IBAN: {{ @$userDetail->footer_iban }}
</p>
@endif
</div>
</body>
</html>