import PrintablePage from "@/core/components/PrintablePage";
import {Box, Stack, Typography} from "@mui/material";

const Content = ({data}) => {
    const varables = {
        name: data.name,
        national_code: data.national_id,
        co: '................',
        shenase_eqh: '................',
        modiramel: '................',
        province: data.province_name,
        city: data.city_name,
        mahalejra: '................',
        daftar: '................',
        post_code: data.postal_code,
        telephone: data.telephone_number,
        mobile: data.phone_number,
        tarh_name: 'بازسازی ناوگان مسافری',
        mojavez_type: '................',
        mojavez_number: '................',
        darkhasti_amount: '........................',
        darkhasti_amount_gardesh: '........................',
        darkhasti_amount_sabet: '........................',
        dore_tanafos: data.tanafos_period || '',
        avarde_moteghazi: 0,
        avarde_dastgah: 0,
        avarde_bank: 0,
        sarmaye_all: '.......................',
        bahrebardari: '.......................',
        sarane: '................',
        kol: '................',
        tahod_shode: '................',
        nafar: '................',

    }
    return (<>
        <PrintablePage key={data.id} header={false} footer={false} paperSx={{px: 0.5}}>
            <Box
                sx={{border: 1, bgcolor: '#f0f0f0'}}>
                <Typography fontSize={14} fontWeight={'bold'} sx={{fontFamily: 'Bnazanin'}} textAlign={'center'}>
                    {`فرم خلاصه اطلاعات تایید شده طرح متقاضی استفاده از تسهیلات موضوع جزء 1 تا 9 بند (الف) تبصره (18) قانون بودجه سال 1401 کل کشور (فرم ب)`}
                </Typography>
            </Box>
            <Box sx={{mt: .5, border: 1, p: 0.5}}>
                <Stack direction={'row'} spacing={2}>
                    <Typography sx={{fontFamily: 'Bnazanin'}}>1-</Typography>
                    <Stack sx={{flexGrow: 1, pr: 20}}>
                        <Stack direction={'row'} justifyContent={'space-between'}>
                            <Typography fontSize={18}
                                        sx={{fontFamily: 'Bnazanin'}}>{`نام متقاضی: ${varables.name}`}</Typography>
                            <Typography fontSize={18}
                                        sx={{fontFamily: 'Bnazanin'}}>{`کد ملی: ${varables.national_code}`}</Typography>
                        </Stack>
                        <Stack direction={'row'} justifyContent={'space-between'}>
                            <Typography fontSize={18}
                                        sx={{fontFamily: 'Bnazanin'}}>{`نام شرکت: ${varables.co}`}</Typography>
                            <Typography fontSize={18}
                                        sx={{fontFamily: 'Bnazanin'}}>{`شناسه اقتصادی: ${varables.shenase_eqh}`}</Typography>
                        </Stack>
                        <Stack direction={'row'} justifyContent={'space-between'}>
                            <Typography fontSize={18}
                                        sx={{fontFamily: 'Bnazanin'}}>{`نام مدیرعامل: ${varables.modiramel}`}</Typography>
                        </Stack>
                    </Stack>
                </Stack>
            </Box>
            <Box sx={{mt: .5, border: 1, p: 0.5}}>
                <Stack direction={'row'} spacing={2}>
                    <Typography sx={{fontFamily: 'Bnazanin'}}>2-</Typography>
                    <Stack sx={{flexGrow: 1, pr: 20}}>
                        <Typography
                            fontSize={18}
                            sx={{fontFamily: 'Bnazanin'}}>{`آدرس: استان: ${varables.province} شهرستان: ${varables.city} محل اجرای طرح: ${varables.mahalejra}`}</Typography>
                        <Stack direction={'row'} justifyContent={'space-between'}>
                            <Typography fontSize={18}
                                        sx={{fontFamily: 'Bnazanin'}}>{`محل دفتر: ${varables.daftar}`}</Typography>
                            <Typography fontSize={18}
                                        sx={{fontFamily: 'Bnazanin'}}>{`کد پستی: ${varables.post_code}`}</Typography>
                        </Stack>
                        <Typography
                            fontSize={18}
                            sx={{fontFamily: 'Bnazanin'}}>{`شماره تماس: ${varables.telephone} شماره همراه: ${varables.mobile}`}</Typography>
                    </Stack>
                </Stack>
            </Box>
            <Box sx={{mt: .5, border: 1}}>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>3-</Typography>
                        <Typography fontSize={18}
                                    sx={{fontFamily: 'Bnazanin'}}>{`عنوان طرح: ${varables.tarh_name}`}</Typography>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>4-</Typography>
                        <Stack sx={{flexGrow: 1, pr: 20}}>
                            <Typography fontSize={18}
                                        sx={{fontFamily: 'Bnazanin'}}>{`توضیح مطابقت طرح با برنامه ملی (شیوه نامه) ابلاغ شده دستگاه و سند آمایش استان: `}</Typography>
                            <Typography fontSize={16}
                                        sx={{fontFamily: 'Bnazanin'}}>{`مطابق با بند ................................ برنامه دستگاه اجرایی ذیربط می باشد.`}</Typography>
                            <Stack sx={{mt: 1}} direction={'row'} alignItems={'center'} spacing={.5}>
                                <Typography fontSize={18}
                                            sx={{
                                                fontFamily: 'Bnazanin'
                                            }}>{`مطابق با سند آمایش سرزمین و اولویتهای مربوط استان می باشد.`}</Typography>
                                <Box
                                    sx={{border: 2, width: 15, height: 15}}></Box>
                            </Stack>
                        </Stack>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>5-</Typography>
                        <Typography
                            fontSize={18}
                            sx={{fontFamily: 'Bnazanin'}}>{`اولویت مورد نظر (بر اساس موارد 5 و 6 دستورالعمل):`}</Typography>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>6-</Typography>
                        <Typography
                            fontSize={18}
                            sx={{fontFamily: 'Bnazanin'}}>{`زمینه فعالیت در بخش اقتصادی: حمل و نقل  زیر بخش اقتصادی: ناوگان مسافری  دستگاه اجرایی ذیربط: سازمان راهداری و حمل و نقل جاده ای`}</Typography>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>7-</Typography>
                        <Stack sx={{flexGrow: 1, pr: 20}}>
                            <Stack direction={'row'} justifyContent={'space-between'}>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>{`نوع مجوز: ${varables.mojavez_type}`}</Typography>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>{`شماره و تاریخ مجوز: ${varables.mojavez_number}`}</Typography>
                            </Stack>
                        </Stack>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>8-</Typography>
                        <Typography
                            fontSize={18}
                            sx={{fontFamily: 'Bnazanin'}}>{`نوع تسهیلات:`}</Typography>
                        <Stack sx={{mt: 1}} direction={'row'} alignItems={'center'} spacing={.5}>
                            <Typography
                                fontSize={18}
                                sx={{
                                    fontFamily: 'Bnazanin'
                                }}>{`در گردش`}</Typography>
                            <Box
                                sx={{border: 2, width: 15, height: 15}}></Box>
                        </Stack>
                        <Stack sx={{mt: 1}} direction={'row'} alignItems={'center'} spacing={.5}>
                            <Typography
                                fontSize={18}
                                sx={{
                                    fontFamily: 'Bnazanin'
                                }}>{`ثابت`}</Typography>
                            <Box sx={{border: 2, bgcolor: '#000', width: 15, height: 15}}></Box>
                        </Stack>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>9-</Typography>
                        <Typography
                            fontSize={18}
                            sx={{
                                fontFamily: 'Bnazanin'
                            }}>{`میزان تسهیلات   درخواستی (میلیون ریال): ${varables.darkhasti_amount} در گردش ${varables.darkhasti_amount_gardesh} ثابت ${varables.darkhasti_amount_sabet}`}</Typography>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>10-</Typography>
                        <Stack sx={{flexGrow: 1, pr: 5}}>
                            <Stack direction={'row'} justifyContent={'space-between'}>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>{`نام بانک عامل: صندوق کارآفرینی امید`}</Typography>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>{`نرخ سود (درصد): 15/3%`}</Typography>
                                <Stack direction={'row'} spacing={1}>
                                    <Typography fontSize={18}
                                                sx={{fontFamily: 'Bnazanin'}}>{`یارانه سود:`}</Typography>
                                    <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                        <Typography
                                            fontSize={18}
                                            sx={{
                                                fontFamily: 'Bnazanin'
                                            }}>{`دارد`}</Typography>
                                        <Box sx={{border: 2, bgcolor: '#000', width: 15, height: 15}}></Box>
                                    </Stack>
                                    <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                        <Typography
                                            fontSize={18}
                                            sx={{
                                                fontFamily: 'Bnazanin'
                                            }}>{`ندارد`}</Typography>
                                        <Box
                                            sx={{border: 2, width: 15, height: 15}}></Box>
                                    </Stack>
                                </Stack>
                            </Stack>
                            <Stack direction={'row'} justifyContent={'space-between'}>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>{`دوره تنفس (ماه): ${varables.dore_tanafos}`}</Typography>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>{`دوره مشارکت (ماه): ..........`}</Typography>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>{`دوره بازپرداخت (ماه): 60`}</Typography>
                            </Stack>
                        </Stack>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>11-</Typography>
                        <Typography fontSize={18} sx={{fontFamily: 'Bnazanin'}}>آورده</Typography>
                        <table style={{
                            textAlign: 'center',
                            flexGrow: '1', fontFamily: 'Bnazanin', borderCollapse: 'collapse', border: '1px solid'
                        }}>
                            <tbody>
                            <tr>
                                <td style={{border: '1px solid'}} rowSpan={2}>میزان آورده (میلیون ریال)</td>
                                <td style={{border: '1px solid'}}>متقاضی</td>
                                <td style={{border: '1px solid'}}>دستگاه</td>
                                <td style={{border: '1px solid'}}>بانک عامل</td>
                            </tr>
                            <tr>
                                <td style={{border: '1px solid'}}>{varables.avarde_moteghazi}</td>
                                <td style={{border: '1px solid'}}>{varables.avarde_dastgah}</td>
                                <td style={{border: '1px solid'}}>{varables.avarde_bank}</td>
                            </tr>
                            </tbody>
                        </table>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>12-</Typography>
                        <Typography fontSize={18} sx={{fontFamily: 'Bnazanin'}}>وضعیت طرح</Typography>
                        <Stack sx={{flexGrow: 1, pr: 8}} direction={'row'} justifyContent={'space-between'}>
                            <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                <Typography
                                    fontSize={18}
                                    sx={{
                                        fontFamily: 'Bnazanin'
                                    }}>{`جدید`}</Typography>
                                <Box
                                    sx={{border: 2, width: 15, height: 15}}></Box>
                            </Stack>
                            <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                <Typography
                                    fontSize={18}
                                    sx={{
                                        fontFamily: 'Bnazanin'
                                    }}>{`توسعه ای`}</Typography>
                                <Box
                                    sx={{border: 2, width: 15, height: 15}}></Box>
                            </Stack>
                            <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                <Typography
                                    fontSize={18}
                                    sx={{
                                        fontFamily: 'Bnazanin'
                                    }}>{`فعال`}</Typography>
                                <Box
                                    sx={{border: 2, width: 15, height: 15}}></Box>
                            </Stack>
                            <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                <Typography
                                    fontSize={18}
                                    sx={{
                                        fontFamily: 'Bnazanin'
                                    }}>{`نیمه تمام`}</Typography>
                                <Box
                                    sx={{border: 2, width: 15, height: 15}}></Box>
                            </Stack>
                            <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                <Typography
                                    fontSize={18}
                                    sx={{
                                        fontFamily: 'Bnazanin'
                                    }}>{`راکد`}</Typography>
                                <Box
                                    sx={{border: 2, width: 15, height: 15}}></Box>
                            </Stack>
                        </Stack>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>13-</Typography>
                        <Typography fontSize={18}
                                    sx={{fontFamily: 'Bnazanin'}}>{`میزان پیشرفت فیزیکی طرح قبل از درخواست تسهیلات:`}</Typography>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>14-</Typography>
                        <Typography fontSize={18}
                                    sx={{fontFamily: 'Bnazanin'}}>{`پیش بینی تاریخ بهره برداری:`}</Typography>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>15-</Typography>
                        <Typography fontSize={18}
                                    sx={{fontFamily: 'Bnazanin'}}>{`میزان سرمایه گذاری (میلیون ریال): کل ${varables.sarmaye_all} برآورد منابع مالی مورد نیاز جهت بهره برداری پروژه: ${varables.bahrebardari}`}</Typography>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>16-</Typography>
                        <Typography fontSize={18}
                                    sx={{fontFamily: 'Bnazanin'}}>{`سابقه استفاده از تسهیلات تکلیفی بر اساس خود اظهاری متقاضی:`}</Typography>
                        <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                            <Typography
                                fontSize={18}
                                sx={{
                                    fontFamily: 'Bnazanin'
                                }}>{`دارد`}</Typography>
                            <Box
                                sx={{border: 2, width: 15, height: 15}}></Box>
                        </Stack>
                        <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                            <Typography
                                fontSize={18}
                                sx={{
                                    fontFamily: 'Bnazanin'
                                }}>{`ندارد`}</Typography>
                            <Box
                                sx={{border: 2, width: 15, height: 15}}></Box>
                        </Stack>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Stack>
                            <Stack direction={'row'} spacing={1}>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>{`وضعیت بدهی ها بر اساس خود اظهاری متقاضی: مطالبات بانکی معقول:`}</Typography>
                                <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                    <Typography
                                        fontSize={18}
                                        sx={{
                                            fontFamily: 'Bnazanin'
                                        }}>{`دارد`}</Typography>
                                    <Box
                                        sx={{border: 2, width: 15, height: 15}}></Box>
                                </Stack>
                                <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                    <Typography
                                        fontSize={18}
                                        sx={{
                                            fontFamily: 'Bnazanin'
                                        }}>{`ندارد`}</Typography>
                                    <Box
                                        sx={{border: 2, width: 15, height: 15}}></Box>
                                </Stack>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>{`بدهی مالیاتی:`}</Typography>
                                <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                    <Typography
                                        fontSize={18}
                                        sx={{
                                            fontFamily: 'Bnazanin'
                                        }}>{`دارد`}</Typography>
                                    <Box
                                        sx={{border: 2, width: 15, height: 15}}></Box>
                                </Stack>
                                <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                    <Typography
                                        fontSize={18}
                                        sx={{
                                            fontFamily: 'Bnazanin'
                                        }}>{`ندارد`}</Typography>
                                    <Box
                                        sx={{border: 2, width: 15, height: 15}}></Box>
                                </Stack>
                            </Stack>
                            <Stack direction={'row'} spacing={1}>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>{`چک برگشتی`}</Typography>
                                <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                    <Typography
                                        fontSize={18}
                                        sx={{
                                            fontFamily: 'Bnazanin'
                                        }}>{`دارد`}</Typography>
                                    <Box
                                        sx={{border: 2, width: 15, height: 15}}></Box>
                                </Stack>
                                <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                    <Typography
                                        fontSize={18}
                                        sx={{
                                            fontFamily: 'Bnazanin'
                                        }}>{`ندارد`}</Typography>
                                    <Box
                                        sx={{border: 2, width: 15, height: 15}}></Box>
                                </Stack>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>{`وثیقه (به جز طرح):`}</Typography>
                                <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                    <Typography
                                        fontSize={18}
                                        sx={{
                                            fontFamily: 'Bnazanin'
                                        }}>{`دارد`}</Typography>
                                    <Box
                                        sx={{border: 2, width: 15, height: 15}}></Box>
                                </Stack>
                                <Stack direction={'row'} alignItems={'center'} spacing={.5}>
                                    <Typography
                                        fontSize={18}
                                        sx={{
                                            fontFamily: 'Bnazanin'
                                        }}>{`ندارد`}</Typography>
                                    <Box
                                        sx={{border: 2, width: 15, height: 15}}></Box>
                                </Stack>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>نوع وثیقه: ..............</Typography>
                                <Typography fontSize={18}
                                            sx={{fontFamily: 'Bnazanin'}}>بانک عامل دارای حساب:
                                    ..................</Typography>
                            </Stack>
                        </Stack>
                    </Stack>
                </Box>
                <Box sx={{p: 0.5, borderBottom: 1}}>
                    <Stack direction={'row'} spacing={2}>
                        <Typography sx={{fontFamily: 'Bnazanin'}}>17-</Typography>
                        <Typography fontSize={18}
                                    sx={{fontFamily: 'Bnazanin'}}>اشتغال (نفر):</Typography>
                        <Typography fontSize={18}
                                    sx={{fontFamily: 'Bnazanin'}}>{`موجود: ${varables.nafar} تعهد شده: ${varables.tahod_shode} کل: ${varables.kol} هزینه سرانه ایجاد اشتغال: ${varables.sarane}`}</Typography>
                    </Stack>
                    <Typography fontSize={13}
                                sx={{fontFamily: 'Bnazanin'}}>توجه: متغاضی استفاده از تسهیلات محقق اشتغال پیش بینی شده
                        را متعهد شده و پس از دریافت تسهیلات اشتغال (با تایید بیمه تامین اجتماعی) صورت می
                        پذیرد.</Typography>
                </Box>
            </Box>
        </PrintablePage>
    </>)
}

export default Content